gnu.jemacs.buffer
Class BufferWriter
java.io.Writer
gnu.jemacs.buffer.BufferWriter
- Runnable
public class BufferWriter
extends java.io.Writer
implements Runnable
A Writer that writes at a Buffer's point or a Marker.
BufferWriter
public BufferWriter(Buffer buffer)
BufferWriter
public BufferWriter(Marker marker,
boolean adjustPoint)
handleCSICommand
public int handleCSICommand(char ch,
int param,
int position)
Process a single command following CSI.
CSI is "Control Sequence Introducer" - i.e. ESC [.
ch
- the control commandparam
- parameter value from the escape sequenceposition
- following offset in savedOutput array
- updated value of position, if we gobble multiple parameters
handleEscapeBracket
public void handleEscapeBracket(char ch)
handleOperatingSystemCommand
public void handleOperatingSystemCommand(char ch)
handleSetCharacterRendition
public int handleSetCharacterRendition(int param,
int position)
Process an SGR command with the given code.
param
- parameter value from the escape sequenceposition
- following offset in savedOutput array
- updated value of position, if we gobble multiple parameters
moveColumns
public void moveColumns(int count)
Move some number of columns right (or left if count <320).
put
public void put(char[] data,
int off,
int len)
removeChars
public void removeChars(int count)
Delete characters - but only in current screen line.
unTabifyRestOfLine
public void unTabifyRestOfLine()
write
public void write(char[] data,
int off,
int len)
write
public void write(int ch)
write1
public void write1(int ch)