Now, far afield from C, we come to
On Sunday 13 January 2013 07:10, in comp.lang.c,
wrote:
[snip]
> I want to use Ctrl+Home, for example, to get to the top of a document.
>
> PDcurses returns that under Windows (but not Shift+Ctrl+Home, which marks
> text from here to the top of the file).
>
> But Ncurses under Linux doesn't recognise *any* shift combinations for
> keys like Home!
Often, an X "GUI desktop" will reserve some shift combinations for itself.
In KDE 3.5, for instance, <shift><home> is reserved for KDE's "home"
function.
Be mindful of the environment. Curses can only receive keysequences that the
OS (or it's proxys, like X and it's window managers) pass to it. Try
running your curses-based program in a raw terminal, not under X control.
> So a Linux library ported to Windows, works better than it did under
> Linux!
Not really. Windows does less than Linux does. And PDCurses is /not/ curses;
it is a Curses subset, written for Microsoft DOS applications. Hence, it
works within the confines (limits and abilities) of a DOS environment,
and /not/ within the limits and abilities of a Unixish environment.
FWIW, Curses (on Linux) supports the KEY_SHOME (shifted home) key.
[snip]
--
Lew Pitcher
"In Skills, We Trust"