Ray Strode
f64a937df8
fix up copyright headers/assignment
2007-05-22 00:58:23 -04:00
Ray Strode
eb7a035201
first cut at an event loop
2007-05-22 00:48:00 -04:00
Ray Strode
f18c897d09
add new ply_read() function (like the ply_write() function)
2007-05-22 00:47:31 -04:00
Ray Strode
29b57941af
add new linked list implementation
2007-05-22 00:06:48 -04:00
Ray Strode
95ddbf6ab2
begin to hook up new logging interfaces to ply-terminal-session
2007-05-21 17:46:40 -04:00
Ray Strode
e2a3a0c8d2
add start of new classes for handling logging
2007-05-21 17:45:52 -04:00
Ray Strode
ce1debbfe5
add new ply_get_timestamp() function
...
This commit adds a function, ply_get_timestamp(), that returns
the current time in seconds since the epoch as a double.
2007-05-21 10:06:58 -04:00
Ray Strode
aebc4650c6
move static functions in ply-terminal-session.c to top
2007-05-21 09:51:19 -04:00
Ray Strode
d1f2ac9c60
add ply-terminal-session-test to Makefile
2007-05-21 08:10:05 -04:00
Ray Strode
e5c427bf0a
add new ply-terminal-session class
...
This commit features the first cut of a class that can run a
program and direct its console to a pseudoterminal.
2007-05-21 08:02:34 -04:00
Ray Strode
74f0ebf213
fix up string array duplicating functions to compile
...
add new function to close all open fds
2007-05-19 20:16:14 -04:00
Ray Strode
66fb7f7071
add new function to free a string array
2007-05-18 19:35:12 -04:00
Ray Strode
bb52699a66
add new api to duplicate a string array
2007-05-18 19:32:06 -04:00
Ray Strode
816c885aa1
fix the frame buffer compositing code.
...
It was always doing full screen updates instead of just the area
that changed and even that was an accident. The code was totally
broken.
2007-05-18 01:43:50 -04:00
Ray Strode
b6b0419107
make the ply-init-control test redirect messages to a
...
pseudoterminal and then echo them from the psuedoterminal
to stdout
2007-05-16 17:44:08 -04:00
Ray Strode
73ec13dacb
Make ply_fd_has_data return false on hangups
2007-05-16 17:43:20 -04:00
Ray Strode
73879cdf3c
Improve the ply-terminal api
...
Previously, the api for creating the pseudo-terminal
was ply_terminal_open (). This is a bit confusing of an api
because often a program will want to open the pseudo-terminal
after creating it, so you end up with:
ply_terminal_open (terminal);
pts_fd = open (ply_terminal_get_name (terminal), O_RDWR);
or whatever. Now it would be something like:
ply_terminal_create_device (terminal);
device_name = ply_terminal_get_device_name (terminal);
pts_fd = open (device_name, O_RDWR);
which I think is a little clearer.
2007-05-16 16:29:22 -04:00
Ray Strode
e7c3b04e4f
add ply_fd_has_data and ply_fd_can_take_data apis
...
The calls in this commit just do a one-off poll of the passed
in fd to see if the fd is read for read or write call
2007-05-16 15:50:31 -04:00
Ray Strode
088020c3c2
add "fix tests" to the TODO file
2007-05-16 15:35:51 -04:00
Ray Strode
95b8d86146
remove reference to glib-genmarshal since we don't use glib anymore
2007-05-16 15:32:40 -04:00
Ray Strode
1a45864fb1
Add a tests/ directory to keep tests in
...
Note the tests that are there now aren't really suited for
automated testing, so make check is hosed right now
2007-05-16 15:30:27 -04:00
Ray Strode
341e89438f
Make ply_terminal_get_name return a non-freeable string
...
Previously ply_terminal_get_name would return a duplicated
copy of its name that the caller would have to free.
2007-05-16 14:56:42 -04:00
Ray Strode
ce3f6f9f38
add the beginning of an api for managing ptys
2007-05-16 12:04:14 -04:00
Ray Strode
7ec3a22828
add AC_GNU_SOURCE to configure.ac
2007-05-16 12:00:59 -04:00
Ray Strode
b5714c6345
add the start of an api for controlling /bin/init
...
This lets you redirect init messages to /dev/null. Eventually,
we'll need to redirect a psuedoterminal that we log for post
boot up.
2007-05-16 11:25:50 -04:00
Ray Strode
78a8255401
Add new ply_write api
...
It wraps write(), but blocks until
all bytes are written and handles EINTR.
2007-05-16 11:21:18 -04:00
Ray Strode
466bd1bb65
fix a cut-and-paste-o in the ply-image header
2007-05-14 17:49:46 -04:00
Ray Strode
1fe6e200b7
fix up spacing in ply-image.c
2007-05-14 17:27:20 -04:00
Ray Strode
043a5ee2c7
fix the last commit up to compile
2007-05-14 15:28:10 -04:00
Ray Strode
9ec699290d
add new wrapper around the pipe() syscall
2007-05-14 15:00:50 -04:00
Ray Strode
1c9d5b99f2
standardize the vim mode line and move to the bottom of each file
2007-05-12 01:04:44 -04:00
Ray Strode
27049e1258
change coding style of types from FooBar to foo_bar_t
2007-05-12 00:36:53 -04:00
Ray Strode
2ac838f740
fix up ply-image to use the new name for ply-frame-buffer
2007-05-12 00:27:50 -04:00
Ray Strode
501e07e078
rename ply-video-buffer to ply-frame-buffer
2007-05-12 00:26:40 -04:00
Ray Strode
fa54b209bb
refactor video buffer code to have less functions
2007-05-12 00:24:23 -04:00
Ray Strode
04e9d03639
fix typo in alpha blending code
2007-05-11 23:43:17 -04:00
Ray Strode
d95a06080e
Tweak image demo
...
This commit changes the background from the previous bluish
clor to black. It also changes the animation timing so that
the image sits at full opacity for a while before fading down
2007-05-11 23:42:43 -04:00
Ray Strode
9c411f22a0
Hide cursor in image demo
...
previously the image demo would have a little blinking cursor
in the corner that would get in the way. remove it.
2007-05-11 23:40:51 -04:00
Ray Strode
4da04c9487
fix the fading effect in the test case
2007-05-11 22:29:03 -04:00
Ray Strode
7529d0c45b
some small random cleanups
2007-05-11 17:19:52 -04:00
Ray Strode
b6a50319e8
rework framebuffer code to be more general
...
add new ply-image apis for loading pngs
2007-05-10 23:33:59 -04:00
Ray Strode
84d6ac68c8
add sample image
2007-05-10 16:08:01 -04:00
Ray Strode
ed037130a1
try a few things in vein to get OVER to work right
2007-05-10 16:07:47 -04:00
Ray Strode
3be9909f09
add updates pausing feature
...
In order to prevent flicker, there are two new apis
pause and unpause, that prevent and cause respectively
updates from getting flushed to the card.
This commit also has a few fixes for compositing. It
still isn't working like it should be however.
2007-05-10 15:39:05 -04:00
Ray Strode
4c2ac91f58
fix some problems in the previous commit
2007-05-10 13:53:44 -04:00
Ray Strode
931d9df1f2
obey destination position in fill_with_argb32_data
2007-05-10 12:34:52 -04:00
Ray Strode
166a0b6ef7
Add alpha blending to video buffer
2007-05-10 12:26:34 -04:00
Ray Strode
39dec951a9
fix wrong assertions in ply-video-buffer
2007-05-10 11:39:18 -04:00
Ray Strode
e3947a1812
Revert last change and negate assertion
2007-05-10 11:37:35 -04:00
Ray Strode
558b25587c
Premultiply alpha on ply_video_buffer_fill_with_color function
2007-05-10 11:13:02 -04:00