Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion vt100/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ int full = 0;
int quick = 0;
int field_rate = 1;
float curvature = 0.1;
int flow = 1;
char *argv0;
char **cmd;

Expand Down Expand Up @@ -128,7 +129,7 @@ int main (int argc, char **argv)
sdl_capslock (0x7E); //Default is capslock.

argv0 = argv[0];
while ((opt = getopt (argc, argv, "b:Br2fR:DC:QN:c:")) != -1) {
while ((opt = getopt (argc, argv, "b:Br2fR:DC:QN:c:X")) != -1) {
switch (opt) {
case 'B':
/* Backspace is Rubout. */
Expand Down Expand Up @@ -157,6 +158,9 @@ int main (int argc, char **argv)
case 'c':
curvature = atof (optarg);
break;
case 'X':
flow = 0;
break;
default:
usage();
break;
Expand Down
1 change: 1 addition & 0 deletions vt100/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ static void terminal_settings (int fd)
get_baud (cfgetispeed (&new)),
get_baud (cfgetospeed (&new)));
xonxoff =
flow &&
(new.c_iflag & IXON) != 0 &&
new.c_cc[VSTART] == 0x11 &&
new.c_cc[VSTOP] == 0x13;
Expand Down
1 change: 1 addition & 0 deletions vt100/vt100.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ extern int pty;
extern int sound_scope;
extern int quick;
extern int field_rate;
extern int flow;

extern u8 vt100rom[];
extern u8 vt100font[];
Expand Down