fortrangoingonforty/fortty / 4f77477

Browse files

Add cell width fields and update build config

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
4f774773e6dbb2cdeda3b1133f6612a55c7062de
Parents
da6ae99
Tree
4224592

2 changed files

StatusFile+-
M CMakeLists.txt 2 0
M src/terminal/cell.f90 2 0
CMakeLists.txtmodified
@@ -55,10 +55,12 @@ set(FORTRAN_SOURCES
5555
     src/text/atlas.f90
5656
     src/text/renderer.f90
5757
     src/terminal/cell.f90
58
+    src/terminal/wcwidth.f90
5859
     src/config/toml_parser.f90
5960
     src/config/config.f90
6061
     src/terminal/screen.f90
6162
     src/terminal/cursor.f90
63
+    src/terminal/selection.f90
6264
     src/terminal/scrollback.f90
6365
     src/terminal/terminal.f90
6466
     src/terminal/parser.f90
src/terminal/cell.f90modified
@@ -35,6 +35,8 @@ module cell_mod
3535
     type(color_t) :: fg               ! Foreground color
3636
     type(color_t) :: bg               ! Background color
3737
     integer :: attrs = 0              ! Attribute flags
38
+    integer :: width = 1              ! Display width (1 or 2 for wide chars)
39
+    logical :: is_continuation = .false.  ! True if 2nd half of wide char
3840
   end type cell_t
3941
 
4042
   ! Default colors (can be overridden by config)