gnu.jemacs.buffer

Class BufferWriter

public class BufferWriter extends Writer implements Runnable

A Writer that writes at a Buffer's point or a Marker.
Constructor Summary
BufferWriter(Marker marker, boolean adjustPoint)
BufferWriter(Buffer buffer)
Method Summary
voidclose()
voidflush()
inthandleCSICommand(char ch, int param, int position)
Process a single command following CSI.
voidhandleEscapeBracket(char ch)
voidhandleOperatingSystemCommand(char ch)
inthandleSetCharacterRendition(int param, int position)
Process an SGR command with the given code.
voidmoveColumns(int count)
Move some number of columns right (or left if count < 0).
voidput(char[] data, int off, int len)
voidremoveChars(int count)
Delete characters - but only in current screen line.
voidrun()
voidunTabifyRestOfLine()
voidwrite(int ch)
voidwrite(char[] data, int off, int len)
voidwrite1(int ch)

Constructor Detail

BufferWriter

public BufferWriter(Marker marker, boolean adjustPoint)

BufferWriter

public BufferWriter(Buffer buffer)

Method Detail

close

public void close()

flush

public void flush()

handleCSICommand

public int handleCSICommand(char ch, int param, int position)
Process a single command following CSI. CSI is "Control Sequence Introducer" - i.e. ESC [.

Parameters: ch the control command param parameter value from the escape sequence position following offset in savedOutput array

Returns: 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.

Parameters: param parameter value from the escape sequence position following offset in savedOutput array

Returns: 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 < 0).

put

public void put(char[] data, int off, int len)

removeChars

public void removeChars(int count)
Delete characters - but only in current screen line.

run

public void run()

unTabifyRestOfLine

public void unTabifyRestOfLine()

write

public void write(int ch)

write

public void write(char[] data, int off, int len)

write1

public void write1(int ch)