Skip to content

Commit 3ae4e7e

Browse files
committed
0.22.1: esc-l color character under cursor, fixed issue with border disappearing after view mode
1 parent 1bed10c commit 3ae4e7e

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Durdraw
55
_| |__ __ _____ __| |_____ _____ __ __ __
66
/ _ | | | __| _ | __| _ | | | |\
77
/_____|_____|__|__|_____|__|___\____|________| |
8-
\_____________________________________________\| v 0.22.0
8+
\_____________________________________________\| v 0.22.1
99

1010

1111
![Durdraw-0 20-demo](https://github.com/cmang/durdraw/assets/261501/ce539865-2e84-4423-92af-cd9ddeeb02ce)

durdraw/durdraw_ui_curses.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,8 @@ def mainLoop(self):
15211521
self.delLine()
15221522
elif c == 121: # alt-y - Eyedrop
15231523
self.eyeDrop(self.xy[1] - 1, self.xy[0]) # cursor position
1524+
elif c == ord('l'): # alt-l - color under cursor
1525+
self.insertColor(fg=self.colorfg, bg=self.colorbg, pushUndo=True)
15241526
elif c == 73: # alt-I - Character Inspector
15251527
self.showCharInspector()
15261528
elif c == 105: # alt-i - File/Canvas Information
@@ -1583,10 +1585,12 @@ def mainLoop(self):
15831585
self.pasteFromClipboard()
15841586
elif c == ord('V'): # alt-V, View mode
15851587
self.stdscr.clear()
1588+
oldDrawBorders = self.appState.drawBorders # to turn back on when done
15861589
self.appState.playOnlyMode = True
15871590
self.startPlaying()
15881591
self.appState.playOnlyMode = False
15891592
self.statusBar.show()
1593+
self.appState.drawBorders = oldDrawBorders
15901594
self.cursorOn()
15911595
self.stdscr.clear()
15921596
elif c == 82: # alt-R = set playback range

durdraw/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def undosize(size_s):
2626
raise argparse.ArgumentTypeError("Undo size must be between 1 and 1000.")
2727

2828
def main():
29-
DUR_VER = '0.22.0'
29+
DUR_VER = '0.22.1'
3030
DUR_FILE_VER = 7
3131
DEBUG_MODE = False # debug = makes debug_write available, sends verbose notifications
3232
durlogo = '''

examples/indyz-xmas.dur

-436 Bytes
Binary file not shown.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name='durdraw',
9-
version='0.22.0',
9+
version='0.22.1',
1010
author='Sam Foster',
1111
author_email='samfoster@gmail.com',
1212
description='Animated Color ASCII and Unicode Art Editor',

0 commit comments

Comments
 (0)