Terminal: find, zoom, scrollback, scroll keys, context menu, bell, link hover, OSC 52/7, cursor blink, stale selection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,16 +53,22 @@ TerminalTheme chatShellTerminalTheme(BuildContext context) {
|
||||
);
|
||||
}
|
||||
|
||||
/// The terminal's text: the host's monospace family at the card body size.
|
||||
TerminalStyle chatShellTerminalStyle(BuildContext context) {
|
||||
final body = chatCardBodyStyle(context) ?? const TextStyle();
|
||||
/// The terminal's text: the host's monospace family at [fontSize] (the
|
||||
/// terminal text size setting), else a little under the card body size.
|
||||
TerminalStyle chatShellTerminalStyle(BuildContext context, {double? fontSize}) {
|
||||
return TerminalStyle(
|
||||
fontFamily: appMonospaceFamily,
|
||||
fontSize: (body.fontSize ?? 14) * 0.95,
|
||||
fontSize: fontSize ?? chatShellTerminalDefaultFontSize(context),
|
||||
height: 1.3,
|
||||
);
|
||||
}
|
||||
|
||||
/// The terminal's text size when the setting is the default.
|
||||
double chatShellTerminalDefaultFontSize(BuildContext context) {
|
||||
final body = chatCardBodyStyle(context) ?? const TextStyle();
|
||||
return (body.fontSize ?? 14) * 0.95;
|
||||
}
|
||||
|
||||
/// The size of one terminal cell in [style] at the context's text scale,
|
||||
/// measured exactly as the emulator measures it.
|
||||
Size chatShellTerminalCellSize(BuildContext context, TerminalStyle style) {
|
||||
|
||||
Reference in New Issue
Block a user