This `terminal-cursor-style` key can be used to set the terminal cursor style. The user can set a string value to `block` for `■`, `underline` for `_` or `bar` for `|` cursor style. The default value is still `block`. So adding an entry like `terminal-cursor-style=bar` to `termux.properties` file will allow users to change to the `bar` cursor style. After updating the value, termux must be restarted. You can also run `termux-reload-settings` command so that termux loads the updated value, but only new sessions will use the updated value, existing sessions will not be affected unless you Reset them from terminal's long hold options menu `More` -> `Reset` or restart termux activity after double back press to exit. You can temporarily switch to different cursor styles with (or add to `.bashrc` but resetting will restore default `bar` style): - block: `echo -e "\033[2 q"` - underline: `echo -e "\033[4 q"` - bar: ` echo -e "\033[6 q"` Closes #2075
45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
package com.termux.terminal;
|
|
|
|
/**
|
|
* The interface for communication between {@link TerminalSession} and its client. It is used to
|
|
* send callbacks to the client when {@link TerminalSession} changes or for sending other
|
|
* back data to the client like logs.
|
|
*/
|
|
public interface TerminalSessionClient {
|
|
|
|
void onTextChanged(TerminalSession changedSession);
|
|
|
|
void onTitleChanged(TerminalSession changedSession);
|
|
|
|
void onSessionFinished(TerminalSession finishedSession);
|
|
|
|
void onClipboardText(TerminalSession session, String text);
|
|
|
|
void onBell(TerminalSession session);
|
|
|
|
void onColorsChanged(TerminalSession session);
|
|
|
|
void onTerminalCursorStateChange(boolean state);
|
|
|
|
|
|
|
|
Integer getTerminalCursorStyle();
|
|
|
|
|
|
|
|
void logError(String tag, String message);
|
|
|
|
void logWarn(String tag, String message);
|
|
|
|
void logInfo(String tag, String message);
|
|
|
|
void logDebug(String tag, String message);
|
|
|
|
void logVerbose(String tag, String message);
|
|
|
|
void logStackTraceWithMessage(String tag, String message, Exception e);
|
|
|
|
void logStackTrace(String tag, Exception e);
|
|
|
|
}
|