Commit Graph

42 Commits

Author SHA1 Message Date
Brian Barto
7bfe0b9ff5 Commiting an example use case that mimicks the movie scene in sneakers. 2016-04-19 18:18:02 -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
80d37d7dc4 Quick change to the makefile
modified:   Makefile
2016-04-18 11:12:56 -04:00
Brian Barto
3f0c272f44 nmsprintBuffer doesn't need to be a global.
modified:   src/nms.h
2016-04-15 17:39:58 -04:00
Brian Barto
00dd424e9b Making global vars static
modified:   src/nms.h
2016-04-15 17:30:55 -04:00
Brian Barto
e2ab6966a7 Updated the handling of "overflow" data
modified:   nms.h
2016-04-15 15:14:06 -04:00
Brian Barto
61f05b0307 Some needed commenting
modified:   src/nms.h
2016-04-15 14:28:06 -04:00
Brian Barto
4ecd5fcfb3 Changed up the Makefile a bit to make it simpler. Also changed it's location
and added a bin dir.

	new file:   Makefile
	renamed:    src/obj/.gitignore -> bin/.gitignore
	new file:   obj/.gitignore
	deleted:    src/Makefile
2016-04-15 14:02:09 -04:00
Brian Barto
a82d55717a Integrated ncurses color functions to replace my raw escape characters I used for color.
modified:   src/nms.h
2016-04-14 16:25:16 -04:00
Brian Barto
46fc803fe7 Initial curses integration
modified:   src/Makefile
	modified:   src/nms.h
2016-04-14 16:18:42 -04:00
Brian Barto
ece2551814 Couple OCD changes
modified:   nms.h
2016-04-14 15:48:27 -04:00
Brian Barto
0567e7f3b6 Updated Makefile to include the new header file
modified:   src/Makefile
	modified:   src/obj/.gitignore
2016-04-12 17:15:38 -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
74c7075cd0 Added license info
new file:   COPYING
2016-04-05 17:08:56 -04:00
Brian Barto
f4fff3e649 Adding some git ignore files
new file:   src/.gitignore
	new file:   src/obj/.gitignore
2016-04-05 17:01:46 -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
Brian Barto
3dc7cb41d4 Dynamically allocating size for input buffer. This will probably improve in a later commit.
modified:   nms.c
2016-04-04 22:36:00 -04:00
Brian Barto
077cc1d1bb Initial code commit. Doesn't really do much now. Just commiting what code I have.
new file:   nms.c
2016-04-04 22:07:35 -04:00
Brian Barto
f7b2544953 Initial commit 2016-04-04 16:41:06 -04:00