MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / tty__setchar

Function tty__setchar

extern/editline/src/tty.c:798–874  ·  view source on GitHub ↗

tty__setchar(): * Set the tty characters */

Source from the content-addressed store, hash-verified

796 * Set the tty characters
797 */
798private void
799tty__setchar(struct termios *td, unsigned char *s)
800{
801
802#ifdef VINTR
803 td->c_cc[VINTR] = s[C_INTR];
804#endif /* VINTR */
805#ifdef VQUIT
806 td->c_cc[VQUIT] = s[C_QUIT];
807#endif /* VQUIT */
808#ifdef VERASE
809 td->c_cc[VERASE] = s[C_ERASE];
810#endif /* VERASE */
811#ifdef VKILL
812 td->c_cc[VKILL] = s[C_KILL];
813#endif /* VKILL */
814#ifdef VEOF
815 td->c_cc[VEOF] = s[C_EOF];
816#endif /* VEOF */
817#ifdef VEOL
818 td->c_cc[VEOL] = s[C_EOL];
819#endif /* VEOL */
820#ifdef VEOL2
821 td->c_cc[VEOL2] = s[C_EOL2];
822#endif /* VEOL2 */
823#ifdef VSWTCH
824 td->c_cc[VSWTCH] = s[C_SWTCH];
825#endif /* VSWTCH */
826#ifdef VDSWTCH
827 td->c_cc[VDSWTCH] = s[C_DSWTCH];
828#endif /* VDSWTCH */
829#ifdef VERASE2
830 td->c_cc[VERASE2] = s[C_ERASE2];
831#endif /* VERASE2 */
832#ifdef VSTART
833 td->c_cc[VSTART] = s[C_START];
834#endif /* VSTART */
835#ifdef VSTOP
836 td->c_cc[VSTOP] = s[C_STOP];
837#endif /* VSTOP */
838#ifdef VWERASE
839 td->c_cc[VWERASE] = s[C_WERASE];
840#endif /* VWERASE */
841#ifdef VSUSP
842 td->c_cc[VSUSP] = s[C_SUSP];
843#endif /* VSUSP */
844#ifdef VDSUSP
845 td->c_cc[VDSUSP] = s[C_DSUSP];
846#endif /* VDSUSP */
847#ifdef VREPRINT
848 td->c_cc[VREPRINT] = s[C_REPRINT];
849#endif /* VREPRINT */
850#ifdef VDISCARD
851 td->c_cc[VDISCARD] = s[C_DISCARD];
852#endif /* VDISCARD */
853#ifdef VLNEXT
854 td->c_cc[VLNEXT] = s[C_LNEXT];
855#endif /* VLNEXT */

Callers 2

tty_setupFunction · 0.85
tty_rawmodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected