* VDISABLEVAL should be -1 for HP-UX?
@ 1997-05-29 23:23 Rodger V. Anderson
1997-06-01 8:00 ` Zoltan Hidvegi
0 siblings, 1 reply; 2+ messages in thread
From: Rodger V. Anderson @ 1997-05-29 23:23 UTC (permalink / raw)
To: zsh-users
Some time ago (a year and a half) I asked about a problem I was having
with the "set-mark-command" being ignored when it was ^@ (ascii nul).
I think I have figured out what the problem is.
The routine setterm() in zle_main.c uses VDISABLEVAL, as defined in
system.h with a value of 0, to disable certain keys. Unfortunately,
HP-UX appears to treat a value of 0 as valid character, namely ^@
(ascii nul), instead of as undefined. I've recompiled zsh with
VDISABLEVAL set to -1 and the set-mark-command now works.
Any comments? I can provide more details if anyone is interested.
Rodger Anderson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: VDISABLEVAL should be -1 for HP-UX?
1997-05-29 23:23 VDISABLEVAL should be -1 for HP-UX? Rodger V. Anderson
@ 1997-06-01 8:00 ` Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-06-01 8:00 UTC (permalink / raw)
To: Rodger V. Anderson; +Cc: zsh-users
> Some time ago (a year and a half) I asked about a problem I was having
> with the "set-mark-command" being ignored when it was ^@ (ascii nul).
> I think I have figured out what the problem is.
>
> The routine setterm() in zle_main.c uses VDISABLEVAL, as defined in
> system.h with a value of 0, to disable certain keys. Unfortunately,
> HP-UX appears to treat a value of 0 as valid character, namely ^@
> (ascii nul), instead of as undefined. I've recompiled zsh with
> VDISABLEVAL set to -1 and the set-mark-command now works.
This patch should fix the problem.
Zoltan
*** Src/system.h 1997/05/06 05:56:36 3.1.2.3
--- Src/system.h 1997/04/28 05:44:20
***************
*** 257,263 ****
# else
# include <termios.h>
# endif
! # define VDISABLEVAL 0
# define HAS_TIO 1
#else /* not TERMIOS */
# ifdef HAVE_TERMIO_H
--- 257,267 ----
# else
# include <termios.h>
# endif
! # ifdef _POSIX_VDISABLE
! # define VDISABLEVAL _POSIX_VDISABLE
! # else
! # define VDISABLEVAL 0
! # endif
# define HAS_TIO 1
#else /* not TERMIOS */
# ifdef HAVE_TERMIO_H
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-06-01 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-29 23:23 VDISABLEVAL should be -1 for HP-UX? Rodger V. Anderson
1997-06-01 8:00 ` Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).