Brian Barto
e6ccc65d19
Disabling the CP437 character support because it does not display correctly on some versions of
...
ncurses. Hopefully will have a fix soon.
modified: src/nms.c
2016-05-12 14:32:07 -04:00
Brian Barto
db52fbe346
Rudimentary support for UTF-8 character input. Note that east asian wide characters are not
...
supported yet. Support for those should follow soon.
modified: src/nms.c
2016-05-11 19:21:46 -04:00
Brian Barto
a783af8d7f
Performance tweak. The jumble loop smoother now.
...
modified: src/nms.c
2016-05-11 16:55:19 -04:00
Brian Barto
f1adafb03d
Added character set CP437. This now uses the characters we actually see in the movie.
...
modified: src/nms.c
2016-05-10 20:34:33 -04:00
Brian Barto
9ab70d1948
Small refactor of the forground color code
...
modified: README.md
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
2016-05-03 10:30:11 -04:00
Anthony Sterling
469a24b85d
Added the -f
flag to change the foreground color
...
The `-f` flag enabling the selection of the following colors:-
- white
- yellow
- black
- magenta
- blue
- green
- red
By default the foreground is blue, as per the current implementation.
2016-05-02 20:03:10 +01:00
Brian Barto
ed5e9f689f
Support for the '-a' command line option to auto-start the decryption effect
...
modified: README.md
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
2016-05-01 17:09:38 -04:00
Brian Barto
9a7a77c2b7
Merge pull request #10 from maxwellgerber/master
...
More Makefile stuff
2016-04-29 11:26:24 -04:00
Brian Barto
b34fc9bf11
Fix for issue #6 :
...
"Segfaults when input is piped from non-existant program"
modified: src/nms.c
2016-04-28 15:59:00 -04:00
Brian Barto
d110aedb85
Updating/Clarifying some code comments
...
modified: src/nms.c
2016-04-28 15:34:41 -04:00
mrundle
12e08849fd
minor Makefile cleanup and introduced gcc warnings
2016-04-28 04:51:47 +00:00
Brian Barto
6b375c47a9
Minor code tweak to use TAB_SIZE instead of integer constant
...
modified: src/nms.c
2016-04-27 11:26:18 -04:00
Brian Barto
125cf82b42
Added beep when user chooses an invalid selection (when selections are enabled)
...
modified: src/nms.c
2016-04-20 18:33:51 -04:00
Brian Barto
53f3835195
Added option to show cursor during "type" and "jumble" loops.
...
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
2016-04-20 18:16:19 -04:00
Brian Barto
36cf124a0d
Changed nmsexec() to nms_exec()
...
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 17:55:07 -04:00
Brian Barto
9f1ec97e3f
Added cursor position options
...
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 17:51:36 -04:00
Brian Barto
227b5a7344
Changed my typedef name to proper camel case
...
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 17:24:11 -04:00
Brian Barto
9959d6f98f
Changes nmsexec() to accept a structure containing it's multiple arguments. This made
...
more sense than passing a growing list of arguments.
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 17:08:35 -04:00
Brian Barto
f91d5601c4
Added "returnOptions" parameter that limits which keys will continue execution
...
once the src text is revealed.
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 14:52:37 -04:00
Brian Barto
1782f6d248
Flushing input prior to getch()
...
modified: src/nms.c
2016-04-20 12:39:39 -04:00
Brian Barto
dd50839dae
Returning the character that the user pressed after the reveal.
...
modified: src/nms.c
modified: src/nms.h
modified: src/sneakers.c
2016-04-20 12:23:37 -04:00
Brian Barto
17348f7c85
Defining some constants to replace variables that should have never been.
...
modified: src/nms.c
2016-04-19 18:57:29 -04:00
Brian Barto
b97d1cbc4a
Bump up the type speed a touch
...
modified: src/nms.c
2016-04-19 18:36:29 -04:00
Brian Barto
164d487349
Quick bug fix for my last commit
...
modified: src/nms.c
2016-04-19 15:05:21 -04:00
Brian Barto
39390b673c
Had to reopen stdin to get keyboard input back when piped data is used
...
modified: src/nms.c
2016-04-19 13:46:58 -04:00
Brian Barto
ed59cb1070
Removing a line I don't need anymnore due to previous commit.
...
modified: src/nms.c
2016-04-18 18:45:34 -04:00
Brian Barto
103e164106
Decided I didn't need the nmsprintf() function. Instead teh main program should
...
build the character array however it pleases and pass it in to nmsexec().
modified: src/main.c
modified: src/nms.c
modified: src/nms.h
2016-04-18 18:39:56 -04:00
Brian Barto
4ccde16721
No need to loop to increase buffer size when snprintf() tells me exactly how much space I need.
...
modified: src/nms.c
2016-04-18 14:51:16 -04:00
Brian Barto
9b5471838a
Forgot to free() my malloc'd character array
...
modified: src/nms.c
2016-04-18 14:38:02 -04:00
Brian Barto
385cacab05
Follow up to previous commit.
...
modified: src/nms.c
2016-04-18 14:35:25 -04:00
Brian Barto
1b6ba0bf7f
Used snprintf to dynamically grow print buffer size as needed.
...
modified: src/nms.c
2016-04-18 14:27:41 -04:00
Brian Barto
6da3bbdce5
Restructured the application file a bit.
...
modified: Makefile
renamed: src/nms.c -> src/main.c
copied: src/nms.h -> src/nms.c
modified: src/nms.h
2016-04-18 12:00:57 -04:00
Brian Barto
3f2b28a352
Placed all of the logic in to a header file so that it can be included
...
inside other applications.
modified: src/nms.c
copied: src/nms.c -> src/nms.h
2016-04-12 16:18:53 -04:00
Brian Barto
ad7fa569bb
Move struct definition
...
modified: src/nms.c
2016-04-11 18:42:23 -04:00
Brian Barto
5f5c70fee7
Add some more ascii characters to the mask set
...
modified: src/nms.c
2016-04-11 16:56:44 -04:00
Brian Barto
1ce3eaa7b1
Handling for tab characters
...
modified: src/nms.c
2016-04-11 16:31:32 -04:00
Brian Barto
b1d29cd6fe
Initial display of the characters via "type effect"
...
modified: src/nms.c
2016-04-11 16:14:02 -04:00
Brian Barto
906fb5af2d
Only jumble and reveal the number of lines from the input stream that are equal to the
...
number of lines in the terminal window. After the jumble/reveal, print the remaining
characters.
modified: src/nms.c
2016-04-11 13:47:53 -04:00
Brian Barto
01721aca7c
Flushing stdout for each loop itteration, otherwise it doesn't look right for
...
small sets of data.
modified: src/nms.c
2016-04-10 18:52:13 -04:00
Brian Barto
bf6db66729
Adding some TODO notes
...
modified: src/nms.c
2016-04-10 18:43:36 -04:00
Brian Barto
008f93c298
Reveal loop added. Needs refinement but the basic idea is functional.
...
modified: src/nms.c
2016-04-10 18:30:44 -04:00
Brian Barto
e8d708a353
Added jumble effect
...
modified: src/nms.c
2016-04-10 15:51:05 -04:00
Brian Barto
dd89bbc721
Added getMaskChar function. Also swapped out some explicit null pointers with NULL
...
modified: src/nms.c
2016-04-08 15:34:07 -04:00
Brian Barto
a175b434ed
Cleaned up the list building process a bit. Made it so all elements
...
are dynamically allocated, instead of all but the first like before this commit.
This code is a bit smoother and easier to follow.
modified: src/nms.c
2016-04-07 14:49:47 -04:00
Brian Barto
420987a544
Getting rid of that ugly switch statement
...
modified: src/nms.c
2016-04-07 14:27:27 -04:00
Brian Barto
72bf59301a
Replacing octal notation with decimal
...
modified: src/nms.c
2016-04-07 14:12:30 -04:00
Brian Barto
238c8095e2
Linked list initial implementation
...
modified: src/nms.c
2016-04-06 20:28:18 -04:00
Brian Barto
d0bec878b3
Some quick code cleanup
...
modified: src/nms.c
2016-04-06 17:49:41 -04:00
Brian Barto
3632dbcdbe
Moved the files around and made a Makefile
...
new file: src/Makefile
renamed: nms.c -> src/nms.c
2016-04-05 16:55:07 -04:00