Title: Theory / Unimportant / CS / command line / text streaming / curse
Tags: automatedNewLineAfterCommaSpace

Name: curse
Definition: Program that deal with moving the cursor in the terminal for other program
Page: 2
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Context: shell

Instruction: move(r, c)
Page: 2
Effect: move cursor to row r and column c
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: delch()
Page: 2
Effect: delete character under the cursor
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: insch(c)
Page: 2
Effect: insert character c under the cursor. Move cursor to right.
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: addch(c)
Page: 2
Effect: replace character under cursor by c. Move the cursor to right.
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: refresch()
Page: 2
Effect: update screen
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: initscr()
Page: 2
Effect: initialize window
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Returns: represent the window
Library: curse

Instruction: cbreak()
Page: 2
Effect: Move to raw mode. I.e. keyboard input valid immediately, not after hit Enter
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: noecho()
Page: 2
Effect: set no echoing
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: getmaxyx(
  wnd,
  nrows,
  ncols
)
Page: 2
Effect: put the number of row and col from wnd in nrows and ncols
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: clear()
Page: 2
Effect: clear screen, send cursor to position (0, 0)
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Instruction: getch()
Page: 2
Effect: call to input from keyboard
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Returns: the character the user entered
Library: curse

Instruction: endwin()
Page: 2
Effect: restore the original window and leave
Language: C
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Library: curse

Name: Cooked mode
Definition: Mode in which the program see line input after the user press "enter". All erased character and backspace key are not accessible from the program itself
Page: 7
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 3.3
Context: Command line

Name: Raw mode
Definition: Mode in which all key press are accessible by the program.
Page: 7
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 3.3
Context: Command line

Instruction: nocbreak()
Page: 7
Effect: move to cooked mode. I.e. input is accessible only when user send it by pressing Enter
Context: Command line
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 3.3

Question: Where is row 0
Answer: on top of the window
Page: 8
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Context: curse

Question: Where is column 0
Answer: on the left of the window
Page: 8
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Context: curse

Instruction: echo()
Page: 9
Effect: Restores echo.
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: mvaddstr(
  r,
  c,
  string
)
Page: 9
Effect: Move cursor to row r, column c and writes the string at to that position
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: getyx(
  window,
  r,
  c
)
Page: 10
Effect: set r and c to the windows' cursor's row and column
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: scanw()
Page: 10
Effect: similar to scanf, but for curse
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: printw()
Page: 10
Effect: similar to printf, but for curse
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: attron(foo)
Page: 10
Effect: turn attribute foo on
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: attroff(foo)
Page: 10
Effect: turn attribute foo on
Chapter: https://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Curses.pdf
Section: 5.1
Library: curse

Instruction: w_function_name_(
  window,
  args
)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: same us function_name(args) but in window
Language: C
Library: curse

Instruction: function_name_wch(wide_char)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: Same as function_name_ch(char) but with wide char
Library: curse

Instruction: mvaddch(
  r,
  c,
  ch
)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: move cursor to row r, column c, and add ch there
Library: curse

Instruction: echochar(ch)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: adds ch to stdscr at the current cursor position and calls refresh()
Library: curse

Instruction: addrawch(ch)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: PDCurses- specific wrappers for addch() etc. that disable the translation of control characters.
Library: curse

Instruction: function_name_chstr(str)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: same as function_name_ch, but add the string, starting at cursor, and halting at the end of the line or the string
Library: curse

Instruction: function_name_chnstr(
  str,
  n
)
Page: https://github.com/wmcbrine/PDCurses/blob/master/docs/MANUAL.md
Effect: same as function_name_ch, but add the n first characters of the string, starting at cursor, and halting at the end of the line, or the string, of the n-th character
Library: curse