summary refs log tree commit diff stats
path: root/doc/cheatsheet.svg
Commit message (Expand)AuthorAgeFilesLines
* doc/cheatsheet.svg: removed bad "(4)" reference from "g" keyhut2015-05-071-1/+1
* doc/cheatsheet.svg: added text about commandshut2015-05-071-0/+94
* cheatsheet: added whitespace in git linkhut2015-05-021-1/+1
* cheatsheet: fix text alignment, add info about d<key> bindingshut2015-04-191-19/+52
* cheatsheet: add reference to ranger's IRC channelhut2015-04-191-4/+18
* cheatsheet: widen the F12 and = keyshut2015-04-191-6/+6
* cheatsheet: change style of textboxeshut2015-04-191-16/+16
* cheatsheet: highlight hjkl in red, not greenhut2015-04-191-5/+3
* cheatsheet: highlight the "?" keyhut2015-04-191-5/+5
* cheatsheet: added three new sectionshut2015-04-191-107/+558
* cheatsheet: added missing "^D"hut2015-04-171-9/+21
* added doc/cheatsheet.svghut2015-04-171-0/+4024
hlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
; a screen is an array of pointers to lines, in turn arrays of characters

(function new-screen [
  (default-space:space-address <- new space:literal 30:literal)
  (nrows:integer <- next-input)
  (ncols:integer <- next-input)
  (result:screen-address <- new screen:literal nrows:integer)
  (rowidx:integer <- copy 0:literal)
  { begin
    (curr-line-address-address:line-address-address <- index-address result:screen-address/deref rowidx:integer)
    (curr-line-address-address:line-address-address/deref <- new line:literal ncols:integer)
    (curr-line-address:line-address <- copy curr-line-address-address:line-address-address/deref)
    (rowidx:integer <- add rowidx:integer 1:literal)
    (x:boolean <- not-equal rowidx:integer nrows:integer)
    (loop-if x:boolean)
  }
  (reply result:screen-address)
])