mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 00:38:10 +02:00
Make icat a kitten
The kittens framework did not exist when icat was first written.
This commit is contained in:
@@ -33,7 +33,7 @@ class OpenFailed(ValueError):
|
||||
|
||||
def __init__(self, path, message):
|
||||
ValueError.__init__(
|
||||
self, 'Failed to open: {} with error: {}'.format(path, message)
|
||||
self, 'Failed to open image: {} with error: {}'.format(path, message)
|
||||
)
|
||||
self.path = path
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ def serialize_gr_command(cmd, payload=None):
|
||||
|
||||
|
||||
def clear_images_on_screen(delete_data=False) -> str:
|
||||
return serialize_gr_command({'a': 'D' if delete_data else 'd'})
|
||||
return serialize_gr_command({'a': 'd', 'd': 'A' if delete_data else 'a'})
|
||||
|
||||
|
||||
def init_state(alternate_screen=True):
|
||||
|
||||
Reference in New Issue
Block a user