var searchIndex = {}; searchIndex["termion"] = {"doc":"Termion is a pure Rust, bindless library for low-level handling, manipulating\nand reading information about terminals. This provides a full-featured\nalternative to Termbox.","items":[[3,"AsyncReader","termion","An asynchronous reader.",null,null],[5,"async_stdin","","Construct an asynchronous handle to the standard input.",null,{"inputs":[],"output":{"name":"asyncreader"}}],[5,"terminal_size","","Get the size of the terminal.",null,{"inputs":[],"output":{"name":"result"}}],[5,"is_tty","","Is this stream an TTY?",null,{"inputs":[{"name":"t"}],"output":{"name":"bool"}}],[11,"read","","Read from the byte stream.",0,null],[0,"clear","","Clearing the screen.",null,null],[3,"All","termion::clear","Clear the entire screen.",null,null],[3,"AfterCursor","","Clear everything after the cursor.",null,null],[3,"BeforeCursor","","Clear everything before the cursor.",null,null],[3,"CurrentLine","","Clear the current line.",null,null],[3,"UntilNewline","","Clear from cursor to newline.",null,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",5,null],[11,"fmt","","",5,null],[0,"color","termion","Colors.",null,null],[3,"Black","termion::color","Black.",null,null],[3,"Red","","Red.",null,null],[3,"Green","","Green.",null,null],[3,"Yellow","","Yellow.",null,null],[3,"Blue","","Blue.",null,null],[3,"Magenta","","Magenta.",null,null],[3,"Cyan","","Cyan.",null,null],[3,"White","","White.",null,null],[3,"LightBlack","","High-intensity light black.",null,null],[3,"LightRed","","High-intensity light red.",null,null],[3,"LightGreen","","High-intensity light green.",null,null],[3,"LightYellow","","High-intensity light yellow.",null,null],[3,"LightBlue","","High-intensity light blue.",null,null],[3,"LightMagenta","","High-intensity light magenta.",null,null],[3,"LightCyan","","High-intensity light cyan.",null,null],[3,"LightWhite","","High-intensity light white.",null,null],[3,"AnsiValue","","An arbitrary ANSI color value.",null,null],[12,"0","","",6,null],[3,"Rgb","","A truecolor RGB.",null,null],[12,"0","","",7,null],[12,"1","","",7,null],[12,"2","","",7,null],[3,"Fg","","A foreground color.",null,null],[12,"0","","",8,null],[3,"Bg","","A background color.",null,null],[12,"0","","",9,null],[8,"Color","","A terminal color.",null,null],[10,"write_fg","","Write the foreground version of this color.",10,null],[10,"write_bg","","Write the background version of this color.",10,null],[11,"clone","","",11,null],[11,"write_fg","","",11,null],[11,"write_bg","","",11,null],[11,"clone","","",12,null],[11,"write_fg","","",12,null],[11,"write_bg","","",12,null],[11,"clone","","",13,null],[11,"write_fg","","",13,null],[11,"write_bg","","",13,null],[11,"clone","","",14,null],[11,"write_fg","","",14,null],[11,"write_bg","","",14,null],[11,"clone","","",15,null],[11,"write_fg","","",15,null],[11,"write_bg","","",15,null],[11,"clone","","",16,null],[11,"write_fg","","",16,null],[11,"write_bg","","",16,null],[11,"clone","","",17,null],[11,"write_fg","","",17,null],[11,"write_bg","","",17,null],[11,"clone","","",18,null],[11,"write_fg","","",18,null],[11,"write_bg","","",18,null],[11,"clone","","",19,null],[11,"write_fg","","",19,null],[11,"write_bg","","",19,null],[11,"clone","","",20,null],[11,"write_fg","","",20,null],[11,"write_bg","","",20,null],[11,"clone","","",21,null],[11,"write_fg","","",21,null],[11,"write_bg","","",21,null],[11,"clone","","",22,null],[11,"write_fg","","",22,null],[11,"write_bg","","",22,null],[11,"clone","","",23,null],[11,"write_fg","","",23,null],[11,"write_bg","","",23,null],[11,"clone","","",24,null],[11,"write_fg","","",24,null],[11,"write_bg","","",24,null],[11,"clone","","",25,null],[11,"write_fg","","",25,null],[11,"write_bg","","",25,null],[11,"clone","","",26,null],[11,"write_fg","","",26,null],[11,"write_bg","","",26,null],[11,"clone","","",6,null],[11,"rgb","","216-color (r, g, b ≤ 5) RGB.",6,{"inputs":[{"name":"u8"},{"name":"u8"},{"name":"u8"}],"output":{"name":"ansivalue"}}],[11,"grayscale","","Grayscale color.",6,{"inputs":[{"name":"u8"}],"output":{"name":"ansivalue"}}],[11,"write_fg","","",6,null],[11,"write_bg","","",6,null],[11,"write_fg","","",7,null],[11,"write_bg","","",7,null],[11,"fmt","","",8,null],[11,"fmt","","",9,null],[0,"cursor","termion","Cursor.",null,null],[3,"Hide","termion::cursor","Hide the cursor.",null,null],[3,"Show","","Show the cursor.",null,null],[3,"Goto","","Goto some position ((1,1)-based).",null,null],[12,"0","","",27,null],[12,"1","","",27,null],[3,"Left","","Move cursor left.",null,null],[12,"0","","",28,null],[3,"Right","","Move cursor right.",null,null],[12,"0","","",29,null],[3,"Up","","Move cursor up.",null,null],[12,"0","","",30,null],[3,"Down","","Move cursor down.",null,null],[12,"0","","",31,null],[11,"clone","","",32,null],[11,"fmt","","",32,null],[11,"clone","","",33,null],[11,"fmt","","",33,null],[11,"eq","","",27,null],[11,"ne","","",27,null],[11,"clone","","",27,null],[11,"default","","",27,{"inputs":[],"output":{"name":"goto"}}],[11,"fmt","","",27,null],[11,"eq","","",28,null],[11,"ne","","",28,null],[11,"clone","","",28,null],[11,"fmt","","",28,null],[11,"eq","","",29,null],[11,"ne","","",29,null],[11,"clone","","",29,null],[11,"fmt","","",29,null],[11,"eq","","",30,null],[11,"ne","","",30,null],[11,"clone","","",30,null],[11,"fmt","","",30,null],[11,"eq","","",31,null],[11,"ne","","",31,null],[11,"clone","","",31,null],[11,"fmt","","",31,null],[0,"event","termion","Mouse and key events.",null,null],[4,"Event","termion::event","An event reported by the terminal.",null,null],[13,"Key","","A key press.",34,null],[13,"Mouse","","A mouse button press, release or wheel use at specific coordinates.",34,null],[13,"Unsupported","","An event that cannot currently be evaluated.",34,null],[4,"MouseEvent","","A mouse related event.",null,null],[13,"Press","","A mouse button was pressed.",35,null],[13,"Release","","A mouse button was released.",35,null],[4,"MouseButton","","A mouse button.",null,null],[13,"Left","","The left mouse button.",36,null],[13,"Right","","The right mouse button.",36,null],[13,"Middle","","The middle mouse button.",36,null],[13,"WheelUp","","Mouse wheel is going up.",36,null],[13,"WheelDown","","Mouse wheel is going down.",36,null],[4,"Key","","A key.",null,null],[13,"Backspace","","Backspace.",37,null],[13,"Left","","Left arrow.",37,null],[13,"Right","","Right arrow.",37,null],[13,"Up","","Up arrow.",37,null],[13,"Down","","Down arrow.",37,null],[13,"Home","","Home key.",37,null],[13,"End","","End key.",37,null],[13,"PageUp","","Page Up key.",37,null],[13,"PageDown","","Page Down key.",37,null],[13,"Delete","","Delete key.",37,null],[13,"Insert","","Insert key.",37,null],[13,"F","","Function keys.",37,null],[13,"Char","","Normal character.",37,null],[13,"Alt","","Alt modified character.",37,null],[13,"Ctrl","","Ctrl modified character.",37,null],[13,"Null","","Null byte.",37,null],[5,"parse_event","","Parse an Event from `item` and possibly subsequent bytes through `iter`.",null,{"inputs":[{"name":"result"},{"name":"i"}],"output":{"name":"result"}}],[11,"hash","","",34,null],[11,"eq","","",34,null],[11,"ne","","",34,null],[11,"clone","","",34,null],[11,"fmt","","",34,null],[11,"hash","","",35,null],[11,"eq","","",35,null],[11,"ne","","",35,null],[11,"clone","","",35,null],[11,"fmt","","",35,null],[11,"hash","","",36,null],[11,"eq","","",36,null],[11,"clone","","",36,null],[11,"fmt","","",36,null],[11,"hash","","",37,null],[11,"eq","","",37,null],[11,"ne","","",37,null],[11,"clone","","",37,null],[11,"fmt","","",37,null],[0,"input","termion","Input.",null,null],[3,"Keys","termion::input","An iterator over input keys.",null,null],[3,"Events","","An iterator over input events.",null,null],[3,"MouseTerminal","","A terminal with added mouse support.",null,null],[8,"TermRead","","Extension to `Read` trait.",null,null],[10,"events","","An iterator over input events.",38,null],[10,"keys","","An iterator over key inputs.",38,null],[10,"read_line","","Read a line.",38,null],[11,"read_passwd","","Read a password.",38,null],[11,"next","","",39,null],[11,"next","","",40,null],[11,"from","","",41,{"inputs":[{"name":"w"}],"output":{"name":"mouseterminal"}}],[11,"drop","","",41,null],[11,"deref","","",41,null],[11,"deref_mut","","",41,null],[11,"write","","",41,null],[11,"flush","","",41,null],[0,"raw","termion","Raw mode.",null,null],[3,"RawTerminal","termion::raw","A terminal restorer, which keeps the previous state of the terminal, and restores it, when\ndropped.",null,null],[8,"IntoRawMode","","Types which can be converted into "raw mode".",null,null],[10,"into_raw_mode","","Switch to raw mode.",42,null],[11,"drop","","",43,null],[11,"deref","","",43,null],[11,"deref_mut","","",43,null],[11,"write","","",43,null],[11,"flush","","",43,null],[0,"scroll","termion","Scrolling.",null,null],[3,"Up","termion::scroll","Scroll up.",null,null],[12,"0","","",44,null],[3,"Down","","Scroll down.",null,null],[12,"0","","",45,null],[11,"eq","","",44,null],[11,"ne","","",44,null],[11,"clone","","",44,null],[11,"fmt","","",44,null],[11,"eq","","",45,null],[11,"ne","","",45,null],[11,"clone","","",45,null],[11,"fmt","","",45,null],[0,"style","termion","Style.",null,null],[3,"Reset","termion::style","Reset SGR parameters.",null,null],[3,"Bold","","Bold text.",null,null],[3,"Faint","","Fainted text (not widely supported).",null,null],[3,"Italic","","Italic text.",null,null],[3,"Underline","","Underlined text.",null,null],[3,"Blink","","Blinking text (not widely supported).",null,null],[3,"Invert","","Inverted colors (negative mode).",null,null],[3,"CrossedOut","","Crossed out text (not widely supported).",null,null],[3,"Framed","","Framed text (not widely supported).",null,null],[11,"clone","","",46,null],[11,"fmt","","",46,null],[11,"clone","","",47,null],[11,"fmt","","",47,null],[11,"clone","","",48,null],[11,"fmt","","",48,null],[11,"clone","","",49,null],[11,"fmt","","",49,null],[11,"clone","","",50,null],[11,"fmt","","",50,null],[11,"clone","","",51,null],[11,"fmt","","",51,null],[11,"clone","","",52,null],[11,"fmt","","",52,null],[11,"clone","","",53,null],[11,"fmt","","",53,null],[11,"clone","","",54,null],[11,"fmt","","",54,null]],"paths":[[3,"AsyncReader"],[3,"All"],[3,"AfterCursor"],[3,"BeforeCursor"],[3,"CurrentLine"],[3,"UntilNewline"],[3,"AnsiValue"],[3,"Rgb"],[3,"Fg"],[3,"Bg"],[8,"Color"],[3,"Black"],[3,"Red"],[3,"Green"],[3,"Yellow"],[3,"Blue"],[3,"Magenta"],[3,"Cyan"],[3,"White"],[3,"LightBlack"],[3,"LightRed"],[3,"LightGreen"],[3,"LightYellow"],[3,"LightBlue"],[3,"LightMagenta"],[3,"LightCyan"],[3,"LightWhite"],[3,"Goto"],[3,"Left"],[3,"Right"],[3,"Up"],[3,"Down"],[3,"Hide"],[3,"Show"],[4,"Event"],[4,"MouseEvent"],[4,"MouseButton"],[4,"Key"],[8,"TermRead"],[3,"Keys"],[3,"Events"],[3,"MouseTerminal"],[8,"IntoRawMode"],[3,"RawTerminal"],[3,"Up"],[3,"Down"],[3,"Reset"],[3,"Bold"],[3,"Faint"],[3,"Italic"],[3,"Underline"],[3,"Blink"],[3,"Invert"],[3,"CrossedOut"],[3,"Framed"]]}; initSearch(searchIndex);