diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2020-12-22 23:31:24 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2021-03-18 16:43:26 -0400 |
commit | 62f3b6d1d9dc2a0cd9ad3b0e01521fa3c65fb232 (patch) | |
tree | 6d16b1e07bdf56d09386864dc6d8c6e6cd5e0d9a /src/help.c | |
parent | 9ed39afd19a152d6a5f630e6619a50d3746469fc (diff) |
move (invisible) cursor to the active grid cell
This is especially useful for blind people using braille displays.
A braille display is a device with mechanical dots representing the
content of the screen in braille with the aid of a software package
such as BRLTTY. Those displays are made of a single line with a variable
number of rows depending on the model, usually 40 or 80. This is
effectively a 1x40 window view of the screen.
By default, the braille window moves with the position of the screen
cursor. It doesn't track attributes such as reverse color as this is
too unreliable. Finding the actual active cell manually is a daunting
task.
This patch makes sc-im locate the cursor in the active cell when
navigating around so the braille window can automatically be located
on the active cell, or on the input field when active, or on the last
status message, hugely improving the user experience.
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -407,6 +407,7 @@ int show_lines() { wclrtobot(main_win); } + wmove(main_win, 0, 0); (void) wrefresh(main_win); return wgetch(input_win); } |