Gwenhael Le Moine
|
1729df310a
|
[ui_sdl] named fields in some structs + ...
|
2024-05-23 16:34:58 +02:00 |
|
Gwenhael Le Moine
|
7ea781c428
|
same treatment to ui_sdl
|
2024-05-23 16:20:57 +02:00 |
|
Gwenhael Le Moine
|
465761bc87
|
[ui_x11.c] less functions
|
2024-05-23 15:33:29 +02:00 |
|
Gwenhael Le Moine
|
8a4da4d1f6
|
got tired of CamelCase
|
2024-05-23 15:12:19 +02:00 |
|
Gwenhael Le Moine
|
bb32b545e1
|
inline save_* single-use functions
|
2024-05-23 14:20:46 +02:00 |
|
Gwenhael Le Moine
|
be5412a622
|
depuplication
|
2024-05-23 14:11:14 +02:00 |
|
Gwenhael Le Moine
|
2c284f86c8
|
remove indirection functions
|
2024-05-23 14:07:38 +02:00 |
|
Gwenhael Le Moine
|
a2fb56e1a7
|
more static functiosn in ui_x11.c + small stuff
|
2024-05-23 13:50:42 +02:00 |
|
Gwenhael Le Moine
|
84899412ad
|
enable more warnings by default, make it compile cleanly with them
|
2024-05-20 19:03:39 +02:00 |
|
Gwenhael Le Moine
|
f395d805ff
|
[serial] detriplicate (!) ttybuf initialization
|
2024-05-20 18:26:58 +02:00 |
|
Gwenhael Le Moine
|
3090b38a46
|
named struct fields initialization
|
2024-05-17 20:32:21 +02:00 |
|
Gwenhael Le Moine
|
11df5e2370
|
naming and bool
|
2024-05-17 20:32:12 +02:00 |
|
Gwenhael Le Moine
|
777e4100fb
|
mostly trying to optimize and clarify ui_x11
|
2024-05-17 16:44:07 +02:00 |
|
Gwenhael Le Moine
|
ca38afdfa8
|
[ui_x11.c] formatting
|
2024-05-16 16:41:25 +02:00 |
|
Gwenhael Le Moine
|
976ec1f1cb
|
[ui_x11.c] draw keypad in one loop
|
2024-05-16 16:34:50 +02:00 |
|
Gwenhael Le Moine
|
45f37f9d9e
|
[ui_x11.c] deduplicate DrawButton
|
2024-05-16 16:34:16 +02:00 |
|
Gwenhael Le Moine
|
fd0a7709d5
|
[ui_x11.c] use bool
|
2024-05-16 16:33:30 +02:00 |
|
Gwenhael Le Moine
|
11906a289b
|
verbose announce UI type
|
2024-05-16 16:32:23 +02:00 |
|
Gwenhael Le Moine
|
6088f5b751
|
Harmonize draw_row in all 3 ui_*.c
|
2024-05-16 16:01:52 +02:00 |
|
Gwenhael Le Moine
|
66a60953c1
|
[ui_{x11,sdl}.c] optimizing setting lcd_nibbles_buffer + fiddling
|
2024-05-16 15:47:32 +02:00 |
|
Gwenhael Le Moine
|
106f0fc200
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-04-30 07:59:40 +02:00 |
|
Gwenhael Le Moine
|
50b14b4d68
|
fix ncurses include following latest Slackware-current update
|
2024-04-30 07:59:11 +02:00 |
|
Gwenhael Le Moine
|
c1ac07d513
|
config.useDebugger
|
2024-04-25 14:17:12 +02:00 |
|
Gwenhael Le Moine
|
247d0cc133
|
exit only from main.c; inline emulate into main
|
2024-04-24 16:06:24 +02:00 |
|
Gwenhael Le Moine
|
ac6dcb93e7
|
naming config
|
2024-04-18 15:47:23 +02:00 |
|
Gwenhael Le Moine
|
56d1f70f95
|
store config in a struct
|
2024-04-14 11:41:46 +02:00 |
|
Gwenhael Le Moine
|
9ffaefed95
|
Don't exit if configDir doesn't exist, fix #19
|
2024-04-11 21:14:15 +02:00 |
|
Gwenhael Le Moine
|
e7e31f72cc
|
merge init_emulator into start_emulator
|
2024-04-11 13:47:33 +02:00 |
|
Gwenhael Le Moine
|
f8ffd47b46
|
positive condition
|
2024-04-11 13:47:20 +02:00 |
|
Gwenhael Le Moine
|
f0be2043b9
|
name function by what it's doing
|
2024-04-11 13:46:16 +02:00 |
|
Gwenhael Le Moine
|
c31b6c083d
|
move declarations out of emulator.h
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2024-04-11 09:55:24 +02:00 |
|
Gwenhael Le Moine
|
645abec1d2
|
saturn.rstk represents hardware so RSTK
|
2024-04-10 16:44:51 +02:00 |
|
Gwenhael Le Moine
|
a4c61fae7b
|
cleaning, show contrast value in TUI
|
2024-04-10 16:24:41 +02:00 |
|
Gwenhael Le Moine
|
1c89a1083b
|
simplify starting emulator and UI
|
2024-04-10 14:59:50 +02:00 |
|
Gwenhael Le Moine
|
ebf8ded567
|
Revert "make init_serial() an emulator_inner function"
This reverts commit 6557009df9 .
|
2024-04-10 14:46:28 +02:00 |
|
Gwenhael Le Moine
|
6557009df9
|
make init_serial() an emulator_inner function
|
2024-04-10 14:34:45 +02:00 |
|
Gwenhael Le Moine
|
d4a3bae009
|
special header file for debugger: emulator_for_debugger.h
|
2024-04-10 14:21:10 +02:00 |
|
Gwenhael Le Moine
|
84328c19ae
|
merge emu_actions.c into emu_emulate.c
|
2024-04-10 13:15:12 +02:00 |
|
Gwenhael Le Moine
|
f2d9fc67b4
|
externalize emulator's keyboard functions in their own files
|
2024-04-10 12:54:21 +02:00 |
|
Gwenhael Le Moine
|
294d140082
|
make pretty-code
|
2024-04-10 12:16:26 +02:00 |
|
Gwenhael Le Moine
|
f0720ea99c
|
naming: s/NR_/NB_/g
|
2024-04-10 11:05:01 +02:00 |
|
Gwenhael Le Moine
|
12aadf3e9a
|
document 15625
|
2024-04-10 11:01:13 +02:00 |
|
Gwenhael Le Moine
|
18bc490153
|
use bool in tools
|
2024-04-10 11:00:34 +02:00 |
|
Gwenhael Le Moine
|
7fbbd3d89c
|
s/got_alarm/sigalarm_triggered/g
|
2024-04-10 09:34:57 +02:00 |
|
Gwenhael Le Moine
|
dd51ede578
|
refactor ui_init_LCD() use
|
2024-04-10 08:27:26 +02:00 |
|
Gwenhael Le Moine
|
ae866703e1
|
harden normalize_config_dir
|
2024-04-09 23:17:25 +02:00 |
|
Gwenhael Le Moine
|
64c926c02a
|
more bool variables; split opt_gx and opt_49 (unused)
|
2024-04-09 23:07:26 +02:00 |
|
Gwenhael Le Moine
|
a7ce955307
|
bool adj_time_pending
|
2024-04-09 20:55:19 +02:00 |
|
Gwenhael Le Moine
|
c017601fba
|
rece_instr is not used
|
2024-04-09 20:54:59 +02:00 |
|
Gwenhael Le Moine
|
9cb53e8c92
|
correctly named include guard
|
2024-04-09 19:50:40 +02:00 |
|
Gwenhael Le Moine
|
98165ee6a9
|
use more bool
|
2024-04-09 19:50:29 +02:00 |
|
Gwenhael Le Moine
|
437315deef
|
comment out unused parts of device_t
|
2024-04-09 19:49:26 +02:00 |
|
Gwenhael Le Moine
|
82f6e7a842
|
make pretty-code
|
2024-04-09 19:47:49 +02:00 |
|
Gwenhael Le Moine
|
10bae56104
|
convert many booleans to actual bool
|
2024-04-09 16:45:56 +02:00 |
|
Gwenhael Le Moine
|
f2d2c32437
|
[ui_text] remove draw_nibble(); plug ui_refresh_LCD()
|
2024-04-09 15:51:34 +02:00 |
|
Gwenhael Le Moine
|
35f3cd2098
|
re-arrange code
|
2024-04-09 15:51:18 +02:00 |
|
Gwenhael Le Moine
|
923bcabc5c
|
set refresh to 64Hz as the real HP 48
|
2024-04-09 14:32:45 +02:00 |
|
Gwenhael Le Moine
|
9b18c615cc
|
organize and comment main()
|
2024-04-09 14:26:18 +02:00 |
|
Gwenhael Le Moine
|
98dec7387b
|
use a bool
|
2024-04-09 14:23:10 +02:00 |
|
Gwenhael Le Moine
|
12f2c44904
|
got_alarm is now a bool
|
2024-04-09 14:22:47 +02:00 |
|
Gwenhael Le Moine
|
14a7d63fb5
|
+\n
|
2024-04-03 17:31:19 +02:00 |
|
Gwenhael Le Moine
|
7b4e9893e2
|
minor code fiddling
|
2024-04-03 15:51:43 +02:00 |
|
Gwenhael Le Moine
|
11b5b8ea66
|
conf_tab_sx and conf_tab_gx are identical ⇒ conf_tab
|
2024-04-03 15:40:32 +02:00 |
|
Gwenhael Le Moine
|
69e70b70ce
|
ui_x11 use press_key() and release_key() too now
|
2024-04-02 22:45:36 +02:00 |
|
Gwenhael Le Moine
|
091556e9ad
|
ui_* can use saturn.annunc directly, no need to copy it in display
|
2024-04-02 21:42:59 +02:00 |
|
Gwenhael Le Moine
|
1057a1471a
|
renamed saturn.intenable to saturn.interruptable
|
2024-04-02 21:42:05 +02:00 |
|
Gwenhael Le Moine
|
6a358490d4
|
add --inhibit-shutdown as a quick and crude temporary fix for #15
|
2024-04-02 16:16:29 +02:00 |
|
Gwenhael Le Moine
|
ecc2c22712
|
[ui_text] fall through case to avoid duplicating code
|
2024-04-02 16:15:45 +02:00 |
|
Gwenhael Le Moine
|
8e1f843c28
|
clang-format decided to align things better
|
2024-04-02 16:14:02 +02:00 |
|
Gwenhael Le Moine
|
13aa0c47a8
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-03-31 22:45:45 +02:00 |
|
Gwenhael Le Moine
|
276cc721a0
|
state filename in comments
|
2024-03-20 13:48:37 +01:00 |
|
Gwenhael Le Moine
|
66a76e25fd
|
typo
|
2024-03-11 08:09:10 +01:00 |
|
Gwenhael Le Moine
|
d4e7923a69
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2024-02-23 23:38:48 +01:00 |
|
Gwenhael Le Moine
|
49c2139b4c
|
prepare code to clean signatures
|
2024-02-23 23:37:39 +01:00 |
|
Gwenhael Le Moine
|
bf49e00c37
|
correct path
|
2024-02-23 23:37:05 +01:00 |
|
Gwenhael Le Moine
|
023dbc6684
|
groups deprecated options
|
2024-02-23 23:36:40 +01:00 |
|
Gwenhael Le Moine
|
59ff50c339
|
Rephrase message in case of missing config file, see #16
|
2024-02-23 23:25:19 +01:00 |
|
Gwenhael Le Moine
|
ff07e63095
|
bit of rationalizing UI codebases
|
2023-12-21 16:18:04 +01:00 |
|
Gwenhael Le Moine
|
194b8d6ab9
|
unify naming in ui_*
|
2023-12-21 14:28:59 +01:00 |
|
Gwenhael Le Moine
|
b4dddbd542
|
initialize emulator display and lcd_nibbles_buffer in one place only
|
2023-12-21 13:48:40 +01:00 |
|
Gwenhael Le Moine
|
dda20068bd
|
deprecate --tiny and --small in favor of --tui-tiny and --tui-small
|
2023-11-04 23:05:18 +01:00 |
|
Gwenhael Le Moine
|
7624a3afc2
|
[tui] show name and version
|
2023-11-02 10:33:21 +01:00 |
|
Gwenhael Le Moine
|
158c165e07
|
S
|
2023-11-02 10:21:00 +01:00 |
|
Gwenhael Le Moine
|
428be5d88e
|
[tui] add a Fx keybindings reminder on screen
|
2023-11-02 10:19:49 +01:00 |
|
Gwenhael Le Moine
|
2ecd7d5386
|
remap Fx keys in tui and standardize them across all 3 UIs (x11, sdl and tui)
|
2023-11-02 10:04:40 +01:00 |
|
Gwenhael Le Moine
|
0a899ecdc5
|
add a --leave-shift-keys, remove DONT_SHADOW_SHIFTS. refine #13
|
2023-11-01 17:49:50 +01:00 |
|
Gwenhael Le Moine
|
1183b16888
|
missing )
|
2023-10-31 14:08:57 +01:00 |
|
Gwenhael Le Moine
|
2c1596478d
|
defaults UI to those compiled in: x11 > sdl > tui
|
2023-10-31 14:04:07 +01:00 |
|
Gwenhael Le Moine
|
fd2ba567b0
|
avoid segfault when compiled WITH_X11=no WITH_SDL=no and trying --x11 or --sdl
|
2023-10-31 13:17:45 +01:00 |
|
Gwenhael Le Moine
|
5f9f551b34
|
attempt to be more tolerant to older lua
|
2023-10-29 20:37:07 +01:00 |
|
Gwenhael Le Moine
|
93030325bf
|
make DONT_SHADOW_SHIFTS=yes makes a binary that doesn´t use Shift keys
|
2023-10-22 18:28:43 +02:00 |
|
Gwenhael Le Moine
|
833baaa5ba
|
naming
|
2023-10-19 13:22:18 +02:00 |
|
Gwenhael Le Moine
|
2f19cb8a40
|
it always was a wchar_t
|
2023-10-19 13:19:32 +02:00 |
|
Gwenhael Le Moine
|
8be22aecec
|
[ui_text] Wow, --tui --tiny was much easier then I feared!
|
2023-10-19 11:11:34 +02:00 |
|
Gwenhael Le Moine
|
70b2177950
|
[ui_text] tidy UI
|
2023-10-19 07:31:52 +02:00 |
|
Gwenhael Le Moine
|
50896cf4b7
|
fix redundant .config/ in default value of configDir
|
2023-10-18 17:28:44 +02:00 |
|
Gwenhael Le Moine
|
91e9942d7d
|
compact conditional
|
2023-10-18 16:41:32 +02:00 |
|
Gwenhael Le Moine
|
53aa80e1b5
|
add --small TUI drawing 4 pixels per character
|
2023-10-18 16:35:07 +02:00 |
|
Gwenhael Le Moine
|
3ef0dc150c
|
[ui_text] draw line by line
|
2023-10-18 12:37:50 +02:00 |
|
Gwenhael Le Moine
|
4524353015
|
.
|
2023-10-04 09:33:52 +02:00 |
|
Gwenhael Le Moine
|
6f17b32564
|
clean some warnings
|
2023-10-01 22:50:53 +02:00 |
|
Gwenhael Le Moine
|
67168cd1db
|
$XDG_CONFIG_HOME
|
2023-10-01 21:03:26 +02:00 |
|
Gwenhael Le Moine
|
1227573d10
|
rollback
|
2023-10-01 13:17:57 +02:00 |
|
Gwenhael Le Moine
|
3a976c9af7
|
config.lua and its consequences looks good
|
2023-10-01 12:47:42 +02:00 |
|
Gwenhael Le Moine
|
b24cee83c6
|
(WIP) --config=<f> param, read it, set values from it
|
2023-09-30 10:52:40 +02:00 |
|
Gwenhael Le Moine
|
07a2aaa9ee
|
reintroduce conditional front-ends at build, try to auto-detect them.
|
2023-09-27 16:26:27 +02:00 |
|
Gwenhael Le Moine
|
3e3f046ee6
|
unicode
|
2023-09-27 15:17:06 +02:00 |
|
Gwenhael Le Moine
|
8d0c1eb7f3
|
fiddling and naming
|
2023-09-27 15:01:34 +02:00 |
|
Gwenhael Le Moine
|
5f2d935462
|
« rien »
|
2023-09-27 14:52:05 +02:00 |
|
Gwenhael Le Moine
|
c4903e8395
|
naming
|
2023-09-27 14:43:40 +02:00 |
|
Gwenhael Le Moine
|
c7f714bc82
|
[ui_text] draw LCD directly from lcd_nibbles_buffer
|
2023-09-27 14:38:26 +02:00 |
|
Gwenhael Le Moine
|
6ef4667e54
|
comment
|
2023-09-27 14:05:43 +02:00 |
|
Gwenhael Le Moine
|
466e0217b9
|
comment unused #define
|
2023-09-27 14:04:23 +02:00 |
|
Gwenhael Le Moine
|
924d9d2fff
|
enclose UIs more in themselves
|
2023-09-27 14:01:23 +02:00 |
|
Gwenhael Le Moine
|
6efae7530b
|
optimization
|
2023-09-27 13:51:05 +02:00 |
|
Gwenhael Le Moine
|
07d611172f
|
typo
|
2023-09-27 13:36:16 +02:00 |
|
Gwenhael Le Moine
|
dd9608f4c7
|
eliminate disp_buf from ui_sdl (may be sub-optimal)
|
2023-09-27 13:30:02 +02:00 |
|
Gwenhael Le Moine
|
12fe0791e4
|
(big refactoring) eliminate disp_buf everywhere except ui_sdl
|
2023-09-27 13:16:45 +02:00 |
|
Gwenhael Le Moine
|
40a48bc013
|
(big refactoring) move annunciators bits from ui to emulator
|
2023-09-27 12:52:09 +02:00 |
|
Gwenhael Le Moine
|
2e8b1d3e9f
|
(big refactoring) move actual keyboard management from ui_* to emulator
|
2023-09-27 12:37:24 +02:00 |
|
Gwenhael Le Moine
|
a740c97db6
|
refactoring tui
|
2023-09-27 11:11:38 +02:00 |
|
Gwenhael Le Moine
|
ec1d3bd4b9
|
(WIP) refactoring UIs
|
2023-09-27 10:58:41 +02:00 |
|
Gwenhael Le Moine
|
c6b5539852
|
monoline for
|
2023-09-26 15:11:47 +02:00 |
|
Gwenhael Le Moine
|
b3a993b2a1
|
Merge branch 'main' of ssh://src.le-moine.org:38172/gwh/x48ng
|
2023-09-26 13:19:19 +02:00 |
|
Gwenhael Le Moine
|
0b9eec4aef
|
F! and F7
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
|
2023-09-26 13:19:13 +02:00 |
|
Gwenhael Le Moine
|
b04aa42e31
|
harmonize between 3 ui
|
2023-09-26 13:17:51 +02:00 |
|
Gwenhael Le Moine
|
97d9b78c1b
|
-comments
|
2023-09-26 13:17:15 +02:00 |
|
Gwenhael Le Moine
|
183ccc7bee
|
keep just --mono and --gray
|
2023-09-26 13:16:53 +02:00 |
|
Gwenhael Le Moine
|
ba36e6d180
|
meaning of c & r
|
2023-09-26 11:28:48 +02:00 |
|
Gwenhael Le Moine
|
30fd67d0f0
|
eliminate duplicate code
|
2023-09-26 11:28:32 +02:00 |
|
Gwenhael Le Moine
|
4c469e9457
|
unicode strings for indicators
|
2023-09-24 22:29:45 +02:00 |
|
Gwenhael Le Moine
|
123efa0762
|
esthetics
|
2023-09-24 09:27:02 +02:00 |
|
Gwenhael Le Moine
|
4ca96f12b9
|
[tui] show wire and IR devices in UI
|
2023-09-23 20:43:43 +02:00 |
|
Gwenhael Le Moine
|
658fbdf036
|
we know there's 6 annunciators
|
2023-09-23 20:32:12 +02:00 |
|
Gwenhael Le Moine
|
44e5cdfcdb
|
[tui] draw annunciators in their place
|
2023-09-23 19:31:26 +02:00 |
|
Gwenhael Le Moine
|
6e24208d70
|
[tui] more keybindings in --tui, update README and manpage
|
2023-09-23 18:56:39 +02:00 |
|
Gwenhael Le Moine
|
09345afd98
|
[tui] use "colors" for mono too, use characters in last resort
|
2023-09-23 18:19:51 +02:00 |
|
Gwenhael Le Moine
|
8844c382d5
|
ncurses UI has colors too now!
|
2023-09-23 18:16:16 +02:00 |
|
Gwenhael Le Moine
|
b908c50979
|
Fully functional ncurses UI!!
|
2023-09-23 17:16:43 +02:00 |
|
Gwenhael Le Moine
|
8c546a6279
|
draw annunciators
|
2023-09-23 13:40:28 +02:00 |
|
Gwenhael Le Moine
|
07e8a47d27
|
successfully draw LCD with ncurses
|
2023-09-23 12:03:37 +02:00 |
|
Gwenhael Le Moine
|
28d46cbfb3
|
update .clang-format and format all the code
|
2023-09-22 09:44:23 +02:00 |
|
Gwenhael Le Moine
|
7979ebe5c4
|
button.extra deemed unused
|
2023-09-21 10:32:54 +02:00 |
|
Gwenhael Le Moine
|
72d0ae2c88
|
won't use bitmaps for annunciators
|
2023-09-21 09:41:55 +02:00 |
|
Gwenhael Le Moine
|
380e192d87
|
Merge branch 'main' into tui
|
2023-09-21 09:40:46 +02:00 |
|
Gwenhael Le Moine
|
29a5ae530d
|
0.26.1 C needs booleans
|
2023-09-20 17:22:14 +02:00 |
|
Gwenhael Le Moine
|
2a5d68dc80
|
try to be resilient and helpful when dealing with files
|
2023-09-20 16:26:24 +02:00 |
|
Gwenhael Le Moine
|
d83c6c4302
|
normalize all filenames to absolute at init
|
2023-09-20 16:05:42 +02:00 |
|
Gwenhael Le Moine
|
f515cc09f7
|
initialize automatically if needed ans conditions are met
|
2023-09-20 13:33:16 +02:00 |
|
Gwenhael Le Moine
|
0f5b59afb0
|
add missing state variables from verbose output
|
2023-09-20 12:24:23 +02:00 |
|