diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-07-22 15:11:18 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-07-22 15:11:18 +0100 |
commit | 0c2294582b16427c87114418b9f154588dc641e0 (patch) | |
tree | 60471d2925f78c8d98b39b1c8d1e4ebaba75f10b | |
parent | 557124afa12af33f8453f04beab1ebfbe1e7a593 (diff) |
update manpage to reflect the new g-commands
-rw-r--r-- | gramscii.1 | 59 |
1 files changed, 53 insertions, 6 deletions
@@ -74,8 +74,8 @@ command, gramscii will ask the user if they want to save the current screen before creating a new one. .SS MOVEMENTS -The following commands are available in any mode where cursor movements -are meaningful, currently only +The following movement commands are available in any mode where cursor +movements are meaningful, currently only .B move, box, arrow, erase, and .B visual @@ -97,9 +97,27 @@ move the cursor right by 1 column .PP gramscii accepts also the uppercase commands .B H, J, K, L, -which will move in the corresponding direction by 5 units at a time. In -addition to the relative movement command above, the following global -positioning commands are available: +which will move in the corresponding direction by 5 units at a time. +.TP 5m +.BI g +Initiate a global positioning command (go). These are two-letter +commands starting with a +.BI g +and followed by a direction command or by a letter that indicates a +global position, namely: +.RS +.TP 5m +.BI h +move the cursor to the first column of the current row. +.TP 5m +.BI l +move the cursos to the last column of the current row. +.TP 5m +.BI j +move the cursor to the last row of the current column. +.TP 5m +.BI k +move the cursos to the first row of the current column. .TP 5m .BI g move the cursor to the top-left corner of the screen @@ -110,7 +128,29 @@ move the cursor to the bottom-right corner of the screen .BI m move the cursor to the middle of the screen. .PP -Movements command work in the same way in different modes. +For instance, if you want to move the cursor to the first row of the +current column, you would use the two-letter command +.B gk +(which can be read as "go-up"). Similarly, the command +.B gh +(to be read "go-left"), will move the cursor to the first column of the +current line. Notice that the command +.B gg +is effectively equivalent to the sequence +.B ghgk +(or +.B gkgh +) while the command +.B gG +is equivalent to +.B glgj +(or +.B gjgl +). +Typing any other character after the first +.BI g +aborts the global positioning command. +.RE .SS MODES The currently supported modes are: @@ -297,6 +337,13 @@ as "SP". Default is '+'. the .B STATUS BAR as "EP". Default is '>'. +.PP +If a style command is issued in +.B box +or +.B arrow +mode, the new style will be applied to the box/arrow that is currently being +drawn, and will remain active until the next style command is used. .SH STATUS BAR gramscii shows a status bar on the last line of the screen. The bar |