Commit Graph

  • f93e9eedb3 font: move codepoint into a public API Mitchell Hashimoto 2022-08-20 10:50:37 -07:00
  • 32d96dd49b add utf8proc so we can detect unicode char width Mitchell Hashimoto 2022-08-20 10:48:54 -07:00
  • e83262e48e nix: remove libpng Mitchell Hashimoto 2022-08-20 10:37:39 -07:00
  • 813f11a5eb fix crash that could happen looking up fallback Mitchell Hashimoto 2022-08-19 22:25:11 -07:00
  • c29f4cace6 remove the font style fallback for the fallback set Mitchell Hashimoto 2022-08-19 22:22:13 -07:00
  • 6026fdf834 only downsample size if its an emoji Mitchell Hashimoto 2022-08-19 22:08:51 -07:00
  • 43c61f57ef font FallbackSet for looking up in fallback TTFs (emoji) Mitchell Hashimoto 2022-08-19 22:05:27 -07:00
  • 22ed65a818 really hacked in emoji support, time to clean it up Mitchell Hashimoto 2022-08-19 21:03:04 -07:00
  • 3d6ca0e423 font face supports loading color fonts (emoji!) Mitchell Hashimoto 2022-08-19 16:28:47 -07:00
  • 5d27fd55e9 temp: add libpng to nix Mitchell Hashimoto 2022-08-19 16:24:06 -07:00
  • 5ae450099d freetype builds in png support, uses our own zlib Mitchell Hashimoto 2022-08-20 10:33:57 -07:00
  • 54b0c6cd03 Merge branch 'ft-libpng' Mitchell Hashimoto 2022-08-20 10:25:32 -07:00
  • 43e42a54cd vendor Mitchell Hashimoto 2022-08-20 10:25:19 -07:00
  • 728df4af16 build libpng and link freetype to it Mitchell Hashimoto 2022-08-20 10:24:49 -07:00
  • 583eec0fe6 zlib Mitchell Hashimoto 2022-08-20 10:02:04 -07:00
  • f9313801f1 avoid an alloc and buffer copy in the common case on font loading Mitchell Hashimoto 2022-08-19 15:12:57 -07:00
  • 742dd010eb Texture atlas supports variable color depth, not just greyscale Mitchell Hashimoto 2022-08-19 14:37:22 -07:00
  • eeaad799e5 get rid of Z buffer stuff Mitchell Hashimoto 2022-08-19 13:47:57 -07:00
  • 2351f88631 updateCell sets the proper Z value and bumps it Mitchell Hashimoto 2022-08-19 13:34:07 -07:00
  • 73e43b6e64 Grid supports sending partial cell updates to GPU Mitchell Hashimoto 2022-08-19 12:54:07 -07:00
  • 4ca45936f7 Only reallocate the GPU buffer if our CPU capacity changes Mitchell Hashimoto 2022-08-19 10:25:19 -07:00
  • 390d95a5af Enable depth buffer, add depth to shader Mitchell Hashimoto 2022-08-19 10:07:30 -07:00
  • a36ae221ae rename font/font.zig to font/main.zig Mitchell Hashimoto 2022-08-19 09:56:01 -07:00
  • d16c672771 update Zig, fixed new invalid octal error Mitchell Hashimoto 2022-08-19 08:58:27 -07:00
  • 1aecfc1061 math style Mitchell Hashimoto 2022-08-18 11:42:32 -07:00
  • 4dd8924427 clean up ortho2d to do less things Mitchell Hashimoto 2022-08-18 11:37:29 -07:00
  • e5c583ccf5 get rid of gb_math and create matrices from scratch Mitchell Hashimoto 2022-08-18 11:33:28 -07:00
  • b562eec83c erase display complete should scroll to bottom Mitchell Hashimoto 2022-08-17 17:24:09 -07:00
  • 16f981a48a Typing a character clears selection, scrolls to bottom Mitchell Hashimoto 2022-08-17 17:23:58 -07:00
  • 5e42d56d95 update zig Mitchell Hashimoto 2022-08-17 17:09:13 -07:00
  • 7c50ac2be5 skip a test on stage2, with this the main package tests pass! Mitchell Hashimoto 2022-08-17 17:06:42 -07:00
  • ffa9ddc0d9 only build tracy if enabled Mitchell Hashimoto 2022-08-17 17:03:38 -07:00
  • 08292e58f3 add system SDK to build to enable cross compilation Mitchell Hashimoto 2022-08-17 14:53:34 -07:00
  • 5c2edf4d2a Fix some stage2 compilation errors Mitchell Hashimoto 2022-08-17 14:42:23 -07:00
  • fcfd8da57a Fix libuv tests Mitchell Hashimoto 2022-08-17 14:40:46 -07:00
  • 2f36d5f715 pkg/tracy Mitchell Hashimoto 2022-08-17 14:03:49 -07:00
  • ea1e972a29 turn tracy into proper package Mitchell Hashimoto 2022-08-17 14:02:09 -07:00
  • 2457454b07 test wasm of the term package Mitchell Hashimoto 2022-08-17 13:57:21 -07:00
  • ead6e5a435 src/terminal can build into a minimal wasm library, I think Mitchell Hashimoto 2022-08-17 12:25:53 -07:00
  • 37b854f77c Revert "update libuv tests" Mitchell Hashimoto 2022-08-17 11:36:08 -07:00
  • 2228675973 update libuv tests Mitchell Hashimoto 2022-08-17 11:29:08 -07:00
  • f2d65d4524 move freetype into pkg Mitchell Hashimoto 2022-08-17 11:20:31 -07:00
  • b2192ea8f7 move libuv into pkg Mitchell Hashimoto 2022-08-16 17:47:44 -07:00
  • f7d55ce334 update zig Mitchell Hashimoto 2022-08-15 09:59:21 -07:00
  • 3b7a6b78a7 fix ttyWrite calculation to avoid truncating data Mitchell Hashimoto 2022-08-15 09:57:38 -07:00
  • e3ddffdf36 don't scale up OpenGL projection in Retina, use true values Mitchell Hashimoto 2022-08-09 10:21:23 -07:00
  • f94f3cb5a4 enable retina on Mac, set OpenGL to pixel size properly Mitchell Hashimoto 2022-08-09 10:06:30 -07:00
  • cbaf5b585d update zig Mitchell Hashimoto 2022-08-09 09:24:00 -07:00
  • ad1cdbcd59 implement erase display scrollback ("clear" command) Mitchell Hashimoto 2022-08-09 09:22:34 -07:00
  • fb5afbedd2 add screen .history tag to fetch scrollback region Mitchell Hashimoto 2022-08-09 09:18:10 -07:00
  • 04ddd3e9ff update TODO Mitchell Hashimoto 2022-08-09 09:01:59 -07:00
  • 57cec33303 set a minimum window size Mitchell Hashimoto 2022-08-09 08:59:45 -07:00
  • febec6f91b Merge pull request #2 from mitchellh/reflow Mitchell Hashimoto 2022-08-08 21:17:48 -07:00
  • 38af14ff3a resize alt screen without reflow Mitchell Hashimoto 2022-08-08 21:14:27 -07:00
  • f82493cccf when growing cols, adjust viewport and cursor if we shorten Mitchell Hashimoto 2022-08-08 20:52:36 -07:00
  • 16a5a45293 when growing rows, offset cursor by added rows Mitchell Hashimoto 2022-08-08 18:14:11 -07:00
  • d551f1126b when less cols, cursor needs to be in screen space, not viewport Mitchell Hashimoto 2022-08-08 17:44:13 -07:00
  • 113b5a318b when shrinking rows, clear empty space from the end (see test case) Mitchell Hashimoto 2022-08-08 17:08:57 -07:00
  • a2cf116063 fix a crash when reflowing to smaller cols but still buggy Mitchell Hashimoto 2022-08-08 14:20:52 -07:00
  • f3d3d255fb handle case where cursor is past where content is on col shrink Mitchell Hashimoto 2022-08-08 14:08:01 -07:00
  • 9493561159 assertions to save our bacon Mitchell Hashimoto 2022-08-08 14:03:14 -07:00
  • e4c8bbd394 reflow cursor when shrinking cols Mitchell Hashimoto 2022-08-08 14:02:28 -07:00
  • 6fa4cb07c7 more cursor reflow Mitchell Hashimoto 2022-08-08 13:56:09 -07:00
  • bfbeceeefa when cols grow, move cursor if it unwraps the line it is on Mitchell Hashimoto 2022-08-08 13:47:49 -07:00
  • a37bf60bf6 update TODO Mitchell Hashimoto 2022-08-08 13:06:32 -07:00
  • 9ddb19e9b0 replace old resize with new reflow resize Mitchell Hashimoto 2022-08-08 13:06:01 -07:00
  • f97b739317 reflow when columns get smaller Mitchell Hashimoto 2022-08-08 13:04:27 -07:00
  • 8a5dadd995 rowIndex uses tag max so we have max in just one place Mitchell Hashimoto 2022-08-08 10:38:24 -07:00
  • 57f6986343 rowIterator(.screen) now ignores unused lines, fixes shrinking rows Mitchell Hashimoto 2022-08-08 10:32:42 -07:00
  • 4ef73efeac resize less rows, but currently not 100% working (see commented tests) Mitchell Hashimoto 2022-08-08 10:28:11 -07:00
  • 2cf4a265e5 reflow when cols grow Mitchell Hashimoto 2022-08-08 09:36:04 -07:00
  • dc351582bc resize increasing column width without reflow Mitchell Hashimoto 2022-08-07 16:23:23 -07:00
  • be3a539152 start working on new resize with reflow, can grow rows Mitchell Hashimoto 2022-08-07 15:52:53 -07:00
  • 039b640f6b Merge branch 'reflow' Mitchell Hashimoto 2022-08-07 10:47:27 -07:00
  • 2d6d027097 Screen.region to get a region of contiguous memory for a tag Mitchell Hashimoto 2022-08-07 10:46:35 -07:00
  • 92602dafca rowIterator takes the tag type to iterate over Mitchell Hashimoto 2022-08-07 10:26:04 -07:00
  • 05e0adaa01 screen operations operate on the active area Mitchell Hashimoto 2022-08-07 09:48:22 -07:00
  • 8ea20f9e41 start changing getRow and rowIndex to use tagged indexes Mitchell Hashimoto 2022-08-07 09:41:30 -07:00
  • e687cdb82f more TODO Mitchell Hashimoto 2022-08-06 16:15:52 -07:00
  • f4e00859ce update TODO with a bunch of select tasks Mitchell Hashimoto 2022-08-06 16:13:45 -07:00
  • 1da5ca0a7f mouse xpos/ypos can be negative or larger than window size Mitchell Hashimoto 2022-08-06 16:05:32 -07:00
  • 109e2a67ab selectionString: realloc so free gets the correct length Mitchell Hashimoto 2022-08-06 15:50:25 -07:00
  • 9d26ab2dc8 memset zero values when resizing a screen Mitchell Hashimoto 2022-08-06 15:44:20 -07:00
  • 80719d1467 update TODO Mitchell Hashimoto 2022-08-06 11:19:23 -07:00
  • 8ba9209f64 update mach vendor Mitchell Hashimoto 2022-08-06 11:10:56 -07:00
  • ac5b4d8760 update zig Mitchell Hashimoto 2022-08-05 20:00:56 -07:00
  • c99a79055c HPA does nothing when status display is active Mitchell Hashimoto 2022-08-05 19:56:40 -07:00
  • ce6f022a7e cursor should be a hollow rect on unfocus, regression from e163e4962baad09cd2c36be1529dee4fcf1220b0 Mitchell Hashimoto 2022-08-05 19:26:50 -07:00
  • dd98768400 note that selectionSlices is tested Mitchell Hashimoto 2022-08-05 11:40:52 -07:00
  • 263ca66b74 update TODO Mitchell Hashimoto 2022-08-05 11:39:04 -07:00
  • 2670ae1265 Copy Selection to Clipboard Mitchell Hashimoto 2022-08-05 11:38:41 -07:00
  • d4c4330d4d copy! Mitchell Hashimoto 2022-08-05 11:37:02 -07:00
  • abde2b9e18 way easier way to slice to end of storage duh Mitchell Hashimoto 2022-08-05 11:21:37 -07:00
  • ecaca23959 selectionString: test wraparound case, fix bugs Mitchell Hashimoto 2022-08-05 11:20:53 -07:00
  • 363c51360b selectionString: more accurate buf allocation Mitchell Hashimoto 2022-08-05 11:08:56 -07:00
  • 25dc292c14 selectionString unwraps properly Mitchell Hashimoto 2022-08-05 11:04:41 -07:00
  • dd76fe124d terminal.selectionString to grab the string value of a selection Mitchell Hashimoto 2022-08-05 10:57:08 -07:00
  • 140f66937d update TODO Mitchell Hashimoto 2022-08-04 16:58:09 -07:00
  • 0855d391a8 fix selection of a single character Mitchell Hashimoto 2022-08-04 16:53:10 -07:00
  • 68260cc3d0 fix some selection contains logic on single lines Mitchell Hashimoto 2022-08-04 14:40:28 -07:00