mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 09:48:09 +02:00
More work on making Screen native
This commit is contained in:
65
kitty/control-codes.h
Normal file
65
kitty/control-codes.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* control_codes.h
|
||||
* Copyright (C) 2016 Kovid Goyal <kovid at kovidgoyal.net>
|
||||
*
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Space
|
||||
#define SP ' '
|
||||
|
||||
// *Null*: Does nothing.
|
||||
#define NUL 0
|
||||
|
||||
// *Bell*: Beeps.
|
||||
#define BEL 0x07
|
||||
|
||||
// *Backspace*: Backspace one column, but not past the begining of the
|
||||
// line.
|
||||
#define BS 0x08
|
||||
|
||||
// *Horizontal tab*: Move cursor to the next tab stop, or to the end
|
||||
// of the line if there is no earlier tab stop.
|
||||
#define HT 0x09
|
||||
|
||||
// *Linefeed*: Give a line feed, and, if :data:`pyte.modes.LNM` (new
|
||||
// line mode) is set also a carriage return.
|
||||
#define LF 10
|
||||
|
||||
// *Vertical tab*: Same as :data:`LF`.
|
||||
#define VT 0x0b
|
||||
// *Form feed*: Same as :data:`LF`.
|
||||
#define FF 0x0c
|
||||
|
||||
// *Carriage return*: Move cursor to left margin on current line.
|
||||
#define CR 13
|
||||
|
||||
// *Shift out*: Activate G1 character set.
|
||||
#define SO 0x0e
|
||||
|
||||
// *Shift in*: Activate G0 character set.
|
||||
#define SI 0x0f
|
||||
|
||||
// *Cancel*: Interrupt escape sequence. If received during an escape or
|
||||
// control sequence, cancels the sequence and displays substitution
|
||||
// character.
|
||||
#define CAN 0x18
|
||||
// *Substitute*: Same as :data:`CAN`.
|
||||
#define SUB 0x1a
|
||||
|
||||
// *Escape*: Starts an escape sequence.
|
||||
#define ESC 0x1b
|
||||
|
||||
// *Delete*: Is ignored.
|
||||
#define DEL 0x7f
|
||||
|
||||
// *Control sequence introducer*: An equivalent for ``ESC [``.
|
||||
#define CSI 0x9b
|
||||
|
||||
// *String terminator*.
|
||||
#define ST 0x9c
|
||||
|
||||
// *Operating system command*.
|
||||
#define OSC 0x9d
|
||||
Reference in New Issue
Block a user