diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2023-10-20 15:53:03 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2023-10-20 15:53:03 -0700 |
commit | 523db004d9d351c8f1d79ce655ce97b819934393 (patch) | |
tree | 38ae85651efaaad112bed1b33d634999d7bd4d4e /log.lua | |
parent | f61976c61a29a82feaec740ba09bbec51ce55ba9 (diff) | |
download | lines.love-523db004d9d351c8f1d79ce655ce97b819934393.tar.gz |
change section delimiters in log for OpenBSD
Thanks eril for the report and patch.
Diffstat (limited to 'log.lua')
-rw-r--r-- | log.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/log.lua b/log.lua index 6bbd0c4..8903e08 100644 --- a/log.lua +++ b/log.lua @@ -14,13 +14,17 @@ function log_start(name, stack_frame_index) if stack_frame_index == nil then stack_frame_index = 3 end - log(stack_frame_index, '\u{250c} ' .. name) + -- I'd like to use the unicode character \u{250c} here, but it doesn't work + -- in OpenBSD. + log(stack_frame_index, '[ u250c ' .. name) end function log_end(name, stack_frame_index) if stack_frame_index == nil then stack_frame_index = 3 end - log(stack_frame_index, '\u{2518} ' .. name) + -- I'd like to use the unicode character \u{2518} here, but it doesn't work + -- in OpenBSD. + log(stack_frame_index, '] u2518 ' .. name) end function log_new(name, stack_frame_index) |