Keep the prompt's block cursor while it is focused
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fc250b31b6
commit
7e1f995e7e
1 changed files with 1 additions and 2 deletions
|
|
@ -64,8 +64,7 @@ a:hover, a:focus-visible {
|
||||||
animation: blink 1.1s steps(1) infinite;
|
animation: blink 1.1s steps(1) infinite;
|
||||||
}
|
}
|
||||||
@keyframes blink { 50% { opacity: 0; } }
|
@keyframes blink { 50% { opacity: 0; } }
|
||||||
#term-input { all: unset; width: 0; padding-right: 1px; caret-color: var(--fg); } /* as wide as its text */
|
#term-input { all: unset; width: 0; caret-color: transparent; } /* as wide as its text, so the block cursor follows it */
|
||||||
.prompt:focus-within .cursor { display: none; } /* the input's own caret takes over while typing */
|
|
||||||
|
|
||||||
/* Terminal: continues right below the first prompt. Lines scrolled off its screen become page text,
|
/* Terminal: continues right below the first prompt. Lines scrolled off its screen become page text,
|
||||||
the screen shows the rows in use and xterm.js fits rows and columns to the window. */
|
the screen shows the rows in use and xterm.js fits rows and columns to the window. */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue