You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to compile the source as-is from the book on the blue house example (the first example). I've invoked it with:
$ printf "hello house\n" | ./direct_mode
but I get no output. On secondary inspection I figured out that after the first getchar() call, errno is set to 25, which seems to be:
#define ENOTTY 25 /* Not a typewriter */
Using input redirection
With redirection, e.g.
$ ./direct_mode <(printf "hello house\n")
I get again nothing; same if I use < msg where msg is a file containing the message. Somewhat amusingly however, if I redirect the Makefile into it, I get garbage:
The issue
Using pipes
I've tried to compile the source as-is from the book on the blue house example (the first example). I've invoked it with:
but I get no output. On secondary inspection I figured out that after the first
getchar()
call,errno
is set to25
, which seems to be:Using input redirection
With redirection, e.g.
I get again nothing; same if I use
< msg
wheremsg
is a file containing the message. Somewhat amusingly however, if I redirect the Makefile into it, I get garbage:also
LANG|LC_CTYPE|TERM
I've tested on the following:
and
notcurses version
ncurses 3.0.13 installed from source
terminal name and version
I used both kitty 0.26.5 and GNOME Terminal 3.46.8 using VTE 0.70.6 +BIDI +GNUTLS +ICU +SYSTEMD, from apt in Debian 12.
Compilation flags for example program
I used
-L/usr/local/lib -lnotcurses -lnotcurses-core
.The text was updated successfully, but these errors were encountered: