diff options
author | Denys Vlasenko | 2017-09-14 10:51:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-09-14 10:51:12 +0200 |
commit | d54f58d487bfa5d6646d9a728d503351691081bf (patch) | |
tree | 7e8b76263c6a70e3b26defc49677bce5227e3784 /miscutils/less.c | |
parent | 363fb5ec4091120003b3f204996e7ff0aa354e58 (diff) | |
download | busybox-d54f58d487bfa5d6646d9a728d503351691081bf.zip busybox-d54f58d487bfa5d6646d9a728d503351691081bf.tar.gz |
hexedit: implement "[enter] goto offset" key
This is a must if you need to edit sector 123456789999 on your /dev/disk.
text data bss dec hex filename
922745 481 6832 930058 e310a busybox_old
923023 481 6832 930336 e3220 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index f869a9e..d524b6c 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -281,9 +281,9 @@ static void set_tty_cooked(void) /* Move the cursor to a position (x,y), where (0,0) is the top-left corner of the console */ -static void move_cursor(int line, int row) +static void move_cursor(int line, int col) { - printf(ESC"[%u;%uH", line, row); + printf(ESC"[%u;%uH", line, col); } static void clear_line(void) |