#console #position #string #describe #basic #traits #character

console-traits

Basic console traits, such as setting char position and writing strings

3 releases (breaking)

Uses old Rust 2015

0.3.0 Sep 15, 2018
0.2.0 May 19, 2018
0.1.0 May 6, 2018

#1248 in Text processing

27 downloads per month
Used in 3 crates (via vga-framebuffer)

MIT/Apache

21KB
437 lines

Console Traits

Contains a trait which describes a console. A console is a rectangular monospaced text display, of a certain width and height. You can write Unicode text to it.

Currently we assume UNIX LF sematics - that is a sole LF implies a new line and carriage return (as distinct to Windows semantics where you would need to send a CRLF pair).

Implementors should handle the following Unicode characters specially:

  • 0x08 (BS) - Backspaces one character (and erases it)
  • 0x09 (TAB) - Move to next tab stop, or the end of the line if no tab stops left.
  • 0x0A (LF) - Line feed.
  • 0x0D (CR) - Carriage return.
  • 0x7F (DEL) - Ignored.

No runtime deps