diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 20:37:52 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-10-26 20:37:52 +0800 |
| commit | cb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4 (patch) | |
| tree | 70fea121bc8c6fac3287c7a96fb8f5f86ec6f2e7 /src/tui/screen.cc | |
| parent | 795126a90d651ede075e9a94741dae4841e4de62 (diff) | |
| download | rwebbrowser-cb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4.tar.gz rwebbrowser-cb1f404cc6b8b9dce135efd26fa32dc0d6fd79c4.tar.xz | |
feat(tui): add document navigation and text selection
Diffstat (limited to 'src/tui/screen.cc')
| -rw-r--r-- | src/tui/screen.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tui/screen.cc b/src/tui/screen.cc index 34a8542..99d4e36 100644 --- a/src/tui/screen.cc +++ b/src/tui/screen.cc @@ -532,7 +532,8 @@ public: } const attr_t attributes = ( glyph.style.strong ? A_BOLD : A_NORMAL ) | ( glyph.style.emphasis ? A_UNDERLINE : A_NORMAL ) - | ( glyph.style.subdued ? A_DIM : A_NORMAL ) | ( glyph.style.warning ? A_REVERSE : A_NORMAL ); + | ( glyph.style.subdued ? A_DIM : A_NORMAL ) | ( glyph.style.warning ? A_REVERSE : A_NORMAL ) + | ( glyph.selected ? A_REVERSE | A_UNDERLINE : A_NORMAL ) | ( glyph.cursor ? A_BOLD : A_NORMAL ); cchar_t cell {}; if ( setcchar( &cell, glyph.text.c_str(), attributes, 0, nullptr ) == ERR || mvwadd_wchnstr( stdscr, row, column, &cell, 1 ) == ERR ) { |
