Replies: 2 comments
-
I'm not sure if I correctly understand what you want to achieve, but does the following work as you expect? function brokenFail { ble/widget/print "$*"; return 1; } Edit: Or, if you would like to show the visible bell, you can write it as follows (where function brokenFail { ble/widget/bell "$*"; return 1; } Another way is to show the message in the info panel below the command line: function brokenFail { ble/edit/info/show text "$*"; return 1; } The info panel is the one where With the above, the message will be shown in the next cycle of the rendering. If you would like to immediately show the message, you can use the following instead. function brokenFail { ble/edit/info/immediate-show text "$*"; return 1; } |
Beta Was this translation helpful? Give feedback.
-
yes that's much better thx |
Beta Was this translation helpful? Give feedback.
-
I've been making bits of progress on my blesh setup and a lot of it Seems To Be Working (tm) but now I'd like to leave some traps at various points where I'm still uncertain. Right now I'm using this:
but it's obviously quite bad and destroys command line in progress. I'd like to have a trap that writes something obvious to the screen somehow preferably without demolishing the command I'm working on at the time. Is there already something like this somewhere, or an easy way to make it? I don't know if it would be possible for it to unwind to the state before the last widget or something but would be nice and maybe that's how undo works anyway or something.
Beta Was this translation helpful? Give feedback.
All reactions