h6. [[OS SWI Calls]] h6(. » [[OS_Byte]] h6((. » OS_Byte 153 h2. OS_Byte 153 h5. (SWI &06) |_<^{width:3em}. Entry | | |<^. R0|<^. 153 (&99) | |<^. R1|<^. [[Input Sources|Input source]]| |<^. R2|<^. Byte to insert | |_<^{width:3em}. Exit|_<^. | |<^. R0|<^. Preserved | |<^. R1|<^. Corrupted | |<^. R2|<^. Corrupted | |\2<^. C flag set if buffer was full, otherwise clear | h4. Use The purpose of this call is to insert a character into either the keyboard or serial buffer. h4. Notes If the current escape character (set with [[OS_Byte 220]]) is inserted, and escape generation is not disabled (see [[OS_Byte 229]] *and* [[OS_Byte 200]]) then an escape condition occurs either as * an [[Escape Event|escape event]] is generated (if enabled with [[OS_Byte 14]]) or * the [[Escape Handler|escape handler]] is called. The effects set by [[OS_Byte 230]] occur when the escape condition is acknowledged with [[OS_Byte 126]]. When inserting into the keyboard buffer, the same rules must be followed as for [[OS_Byte 138]] when dealing with characters outside the range 1-127. h4. See also * [[Escape Event]] * [[Escape Handler]] * [[Input Sources]] * [[OS_Byte]] * [[OS_Byte 14]] * [[OS_Byte 126]] * [[OS_Byte 138]] * [[OS_Byte 200]] * [[OS_Byte 220]] * [[OS_Byte 229]] * [[OS_Byte 230]]