C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
scriou.c File Reference

Screen IO Support for MENU. More...

#include "cm.h"
#include <stdbool.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
Include dependency graph for scriou.c:

Go to the source code of this file.

Functions

bool capture_program_tioctl ()
 capture_program_tioctl() - capture program terminal settings
bool capture_shell_tioctl ()
 capture_shell_tioctl() - capture shell terminal settings
char di_getch ()
 get single character from terminal in raw mode
bool mk_raw_tioctl (struct termios *t_p)
 mk_raw_tioctl() - set terminal to raw mode
bool restore_program_tioctl ()
 restore_program_tioctl() - restore program terminal settings
bool restore_shell_tioctl ()
 restore_shell_tioctl() - restore shell terminal settings
bool set_sane_tioctl (struct termios *t_p)
 set_sane_tioctl() - set terminal to sane settings for C-MENU

Variables

bool f_have_program_tioctl = false
bool f_have_shell_tioctl = false
struct termios shell_err_tioctl program_err_tioctl
struct termios shell_in_tioctl program_in_tioctl
struct termios shell_out_tioctl program_out_tioctl
struct termios program_tioctl
struct termios shell_tioctl

Detailed Description

Screen IO Support for MENU.

Author
Bill Waller Copyright (c) 2025 MIT License billx.nosp@m.wall.nosp@m.er@gm.nosp@m.ail..nosp@m.com
Date
2026-02-09

Definition in file scriou.c.

Variable Documentation

◆ f_have_program_tioctl

bool f_have_program_tioctl = false

program tioctl captured

Definition at line 25 of file scriou.c.

Referenced by capture_program_tioctl(), and restore_program_tioctl().

◆ f_have_shell_tioctl

bool f_have_shell_tioctl = false

shell tioctl captured

Definition at line 24 of file scriou.c.

Referenced by capture_shell_tioctl(), and restore_shell_tioctl().

◆ program_err_tioctl

struct termios shell_err_tioctl program_err_tioctl

Definition at line 37 of file scriou.c.

Referenced by capture_program_tioctl(), and restore_program_tioctl().

◆ program_in_tioctl

struct termios shell_in_tioctl program_in_tioctl

Definition at line 35 of file scriou.c.

Referenced by capture_program_tioctl(), and restore_program_tioctl().

◆ program_out_tioctl

struct termios shell_out_tioctl program_out_tioctl

Definition at line 36 of file scriou.c.

Referenced by capture_program_tioctl(), and restore_program_tioctl().

◆ program_tioctl

struct termios shell_tioctl program_tioctl

Definition at line 23 of file scriou.c.

◆ shell_tioctl

struct termios shell_tioctl