Git Product home page Git Product logo

duhdraw's Introduction

                                 Duh DRAW

                   'Making a DOS-Free world a reality'
     
      DuhDraw, written by Ben Fowler and maintained by Pekka Enberg, is a
      Linux based Open Source clone of TheDRAW, a DOS based ASCII art editor.

  Authors

      Copyright (c) 1996 Ben Fowler
      Copyright (c) 2002-2003 Pekka Enberg

  License

      Duh Draw is free software. You can distribute and/or modify it under the
      terms of the GNU General Public License version 2 as published by the
      Free Software Foundation. Please refer to the file LICENSE for details.

  Using Duh Draw

      Maximum Columns - 80 (Fixed)
      Maximum Lines - 1000
 
      Home - Beginning of Line/ANSI.
      End  - End of Line/ANSI.
      Page Up - Up 23 lines.
      Page Down - Down 23 lines.

      Delete - Delete character under cursor.

      Insert - Toggle insert mode.
      When insert mode is active 'In' appears in the status line.

      F1 thru F10 - character in currently selected high ascii set.
      Shift F1 thru Shift F10 - Select highascii set 1 thru 10.

      High ascii sets 11, 12, 13, 14, 15 are accessed by pressing Alt->
      or Alt-<.

      Alt-A toggles attribute drawing mode.
      When in attribute drawing mode 'Attr' will appear in the status
      line. In this mode moving the cursor causes the character
      newly under the cursor to acquire the current foreground
      and background colors.
 
      Alt-B does the block mode thing ALA XxxXxxx.
      Block mode does not highlight the selected block area yet. It will.
      You can now copy blocks.
      Block mode mirror and invert work correctly and
      mirror (or invert) highascii characters.
      Translate will change all instances of one color to another
      while preserving bright/normal intensity.
      Selecting fill mode will bring up a sub menu to fill
      using the current foreground color,background color,both foreground
      and background color or any character you type.
      You may use one of the highascii characters in the selected set
      or press Alt-C to use  the last character picked up with Alt-P.

      Alt-C draws using the last character picked up with Alt-P in the
      current foreground/background color.

      Alt-D toggles line drawing mode.
      Line drawing uses whatever high ascii set you have selected.
      Using high ascii sets above set 4 produces odd results.
      Line drawing mode is not up to snuff yet but will be.
    
      Alt-E prompts if you wish to erase the current page.
      (Currently there is only one page).
   
      Alt-F brings up the color bar where you select fore and back
      colors. Cursor keys to select. Enter to accept.
      
      Alt-H  Help screen.
      Alt-I  Insert Line.
      Alt-J  Insert Column.
      Alt-K  Kill (Delete) Column.  
      Alt-L  Load file.
      Alt-P  Pickup character under cursor.
      Alt-S  Save file.
      Alt-U  Use color under cursor.
      Alt-X  Exit Duh DRAW.
      Alt-Y  Yank (Delete) line.

  Limitations

      Animation mode is not supported.

duhdraw's People

Contributors

nikolas avatar

Stargazers

Kada B avatar Sam Foster avatar Michael (misc147) avatar Jason Todd avatar  avatar Charles Stephenson avatar ~lmn avatar

Watchers

James Cloos avatar  avatar Charles Stephenson avatar

duhdraw's Issues

Interesting project, strange compiler warning.

Nice project! Looking forward to playing with it. Hope to get unicode support in something like this.

Just FYI: gcc 7.2 threw this at me:

gcc -O2 -s -Wall -o ansi ansi.c ansi-esc.c -lncurses
ansi.c: In function ‘view_ansi’:
ansi.c:505:35: warning: argument 1 value ‘18446744073709547616’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
editbuffer = (unsigned int *) malloc(sizeof(unsigned int) * cols * EDIT_BUFFER_HEIGHT);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/string2.h:319:0,
from /usr/include/string.h:630,
from ansi.c:11:
/usr/include/stdlib.h:427:14: note: in a call to allocation function ‘malloc’ declared here
extern void *malloc (size_t __size) __THROW attribute_malloc __wur;

Program works anyway, ty

I don't understand why it complains when cols is undefined during compile time \o/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.