1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
|
Tue Nov 5 12:46:37 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* lafe.c:
Handle mirror line-types (g,h,i) for subprompt, prompt, and data.
Thu Sep 12 00:39:12 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* TODO: Initial revision
Thu Sep 12 00:34:00 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* Makefile: Added TODO and example.tar.gz to distribution targets
* lafe.c:
Redirections always in append mode. Counted > signs incorrectly..
* var.c:
Permit single character non-alphanumeric variables. $* in particular.
Only print "not defined" warnings if in verbose mode.
Tue Sep 10 14:08:16 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* Makefile: example directory added to distribution target
* lafe.h: interface definition to waitsync() local function
* parse.c: Added waitsync local function.
parse_command() checks for newlines after aliases expansion, and
recalls itself if found.
* lafe.c: Added waitsync command to resynchronize the server.
Multi-line aliases weren't parsed multiple times by parse_command().
Fixed. Gross though, needs recoding.
* example.laferc: Initial revision
* lafe.h: define interface to expand_tilde()
* parse.c:
expand_tilde() function to expand a leading ~ into the $HOME directory.
expand aliases and variables on every line of .laferc (mode==0)
* lafe.c: mode defined to 0 when not connected.
Only chdir() if directory is defined, print error on failure.
* game.c:
Swapped the position of the directory and logfile parameters to
addgame.
Fixed token() routine to handle missing tokens and lines with
whitespace correctly.
Expand ~ into home directory in logfile and directory.
Directory and logfile are now optional, other parameters required.
Tue Sep 10 03:26:45 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* lafe.c: type 'a' protocol fatal (bad password or country name).
little changes to tparm and #includes for Linux.
* Makefile: Added linux target.
removed core in readline, readlines make distclean doesn't kill it
Thu Sep 5 09:28:59 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* parse.c, lafe.h, lafe.c:
Fixed logfile and long execs (prompt and Command: were confused).
Thu Aug 22 11:13:55 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* parse.c:
.laferc lines not malloc()ed, but free()d while parsing. Fixed.
* lafe.c:
memory freed from command stack even when commands==0. Check now.
Wed Aug 21 08:32:38 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* lafe.c:
Zeroed one character too early in pipes. Truncated last character.
Mon Aug 19 10:09:26 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* README: verbose and addgame documentation.
Eliminated the prompt fix message- didn't ever get around to it.
Mon Aug 19 10:01:51 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* lafe.c: several optional outputs now depend on verbose flag:
c_sync, select() errors, empire types 0,2,7,a, and b.
Fixed handling of spaces in pipe command (would truncate
rest of command).
* lafe.h: Added verbose flag and verbosity() function to toggle it.
* parse.c: Added verbose command to toggle verbose flag.
Corrected arguments to addgame.
* lafe.c:
host/port/country/pass were unitialized, cause problems if "lafe game"
not found in addgame database.
Fri Aug 16 04:11:33 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* lafe.c: ^C sent abort\n, not aborted\n. Fixed. ^C should work now.
Wed Aug 7 09:48:29 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* Makefile: Distinguished solaris 2.5 and solaris 2.4 targets.
* game.c: changed bzero() to memset() for Solaris 2.4's sake.
* lafe.c: addgame got logfile wrong (was same as port number)
Wed Aug 7 07:33:42 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* game.c: RCS Id string added.
* game.c:
strcmp() arguments weren't both in the (). Why didn't SGI or IBM's
compilers catch this? Shrug.
Wed Aug 7 05:52:57 1996 Drake Diedrich <dld@bernal.anu.edu.au>
* README: Documented "lafe game" syntax.
* Makefile: Added game.c and example.laferc
* parse.c: Test return value of popen. Inform user of failure.
* lafe.c: Added tests to fopen and popen, failure informs user.
* parse.c:
addgame local command added. execute checks whether socket is valid
before writing to it. Failure message if socket not open and unknown
command is executed.
* lafe.h: Added globals and routines in game.c
* game.c: Initial revision
* lafe.c: .laferc parsed before server connection opened.
Don't try to strdup(getenv()).. crashes if variable not set.
game[] lookup on single argument - all commandline options + directory
Attempt to wipe out commandline arguments.
Doesn't work on irix, maybe elsewhere?
* lafe.c: Changed some fatal errors to non-fatal. Allows
connection to 2.3.7 servers. Added a 5th argument, logfile.
Optional. All output is appended to this file.
* Makefile: Irix6.2 makes mips2 binaries by default. Change to mips1.
(Bug in linker links mips2 libraries.. so it need to compile mips1 on
a pre-6.2 machine anyway). Sigh.
Sat Jul 6 02:35:12 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* parse.c:
Make a copy of the execute argument, and modify the copy, not the
original argument. Caused problems where "~/.laferc" was in read-only
memory segment.
* lafe.c:
Made type 'a' a non-fatal error. So lafe works with 1.x/2.x servers
(client command-not-found would abort lafe).
Print out login sequence information.
Wed May 8 07:39:50 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* parse.c: Really buggy, goes with lafe.c 0.21.1.1
* lafe.c:
Really buggy. Aborting this one. Attempted to circularize the
command buffer for inline synchs and such.
Mon Apr 22 11:01:32 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* alias.c: Fixed argument assignments.
* README:
Updated for lafe-0.21. Local commands, .laferc and redirection.
Mon Apr 22 06:45:03 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* alias.c: Format change in print_aliases().
* var.c: Format change in printvar().
* parse.c: Expand ~ into $HOME when executing a file.
* lafe.c: execute ~/.laferc at startup.
* alias.c:
Replace ; with \n in alias expansions, for multiline aliases.
* var.c: Removed some printfs
expand_variables always runs whether $ present in line or not.
Makes '' consistent.
* lafe.c: mode = type of prompt received last.
* lafe.h: *** empty log message ***
* Makefile: Added lafe.h to distribution
* parse.c:
If there are newlines in the commandline, call parse_command for
each line No interpretation done if line begins with \ Variable
expansion after alias expansion.
* var.c:
Reimplemented independent of environment variables. They were buggy.
* alias.c: Variable expansion added
Fri Apr 19 01:35:36 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* alias.c:
Modified the way local commands are called (only arguments are passed).
* parse.c:
Added mode sensitivity when commands==0. Does not expand prompt
responses. Does not use commandline[] buffer if buffer overflow.
Wed Apr 17 03:29:58 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* parse.c: Fixed extra newlines from execute() and runfeed().
* parse.c: Revised execute to use buffered I/O and call parse_command.
Created several new local commands: help, runfeed, shell, history.
Added descriptions to local commands (for help). parse_command()
now calls expand_alias() on all lines. parse_command() calls
local command routines with argument line, rather than full
command line. execute() and runfeed may be sending extra
newlines.. will check.
* lafe.c: Removed command parser to it's own file (parse.c).
Added a global LafeRevision to contain the version number of this file.
Made socket and commandline[] global, so parse.c can access them.
Removed execute() to parse.c
* alias.c: Simple replacements of commands, no argument parsing yet.
Mon Apr 15 02:22:25 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* lafe.c:
Switched the order of parameters to match other clients. Country/pass
always come first, follwed by optional host/port.
Sends client ID to server now.
Sat Feb 3 14:14:29 1996 Drake Diedrich <Drake.Diedrich@anu.edu.au>
* lafe.c: Leave spaces between two highlighted characters highlighted.
Looks nicer and should print faster.
* lafe.c: Added interrupt (abort) handling.
* lafe.c: Added highlighting similar to the hack Ken sent me.
I didn't touch readline though..
Thu Jan 25 23:49:52 1996 Drake Diedrich <dld@valera.anu.edu.au (Drake Diedrich)>
* Makefile: Added a comment about linking.
Thu Jan 4 04:46:42 1996 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* lafe.c:
Treats command stack as a fifo, not a stack, when printing out prompts
and commands.
Thu Jan 4 03:01:03 1996 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* lafe.c:
Fixed typeahead prompt mixups (was always prompting with the last
prompt received, even if several commands out of sync).
* README:
Updated README to cover commandline specifications and some compiling
difficulties.
* README: Comments about global termcap symbols.
* Makefile: Added configure and OBJ prereqs to Solaris target.
Wed Jan 3 23:55:49 1996 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* lafe.c:
Replaced putchar() with putcharf(), which calls putchar(). For SunOS's sake, where putchar() is a macro.
Sun Dec 3 23:28:23 1995 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* lafe.c: Added append mode for redirections.
Sat Nov 25 08:31:50 1995 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* Makefile: Added osf1 target.
Added -9 to gzip for that extra 1%.
* Makefile: Added solaris target (two extra libraries required)
* lafe.c: Made server/country configurable. Parse commandline.
Fixed command prompt printing (buffering screwed it up).
Probably fixed a memory leak above as well.
Change unknown prompt from "> " to ": " to avoid flash confusion.
* README: Comments on portability.
List known bugs.
* lafe.tar.gz.info: Initial revision
* lafe.c: Fixed a couple warnings.
* README: Initial revision
* Makefile: Added new targets for distribution.
* lafe.c:
A bunch of changes, comments lost when gaia's disk failed. Fortunately
I'd copied this source file to empire.net first.
Sat Nov 18 12:49:18 1995 Drake Diedrich <dld@bernal.anu.edu.au (Drake Diedrich)>
* lafe.c:
primitive exec implemented. Does no local parsing. blank lines
crash the empire3 server (I'm hassling Ken to fix it at his end).
File redirection needs to be stacked so that redirections within
the exec file are local, not global.
Fixed inform parsing and new tele message prompts. Empire3 is not
sending [new tele] when an update occurs.
* lafe.c:
Fixed piping/readline conflict by putting a wait() right after the
pipe close. Also waits after file close, but should return immediately
as there are no child processes.
Ignores SIGPIPE in case more closes prematurely.
BUG: readline continues writing to stdout even if some other
processes has been given stdout (more). Actually, I kind of like
the blinking '>'..
* lafe.c:
close() should have been fclose() in redirection section. Fixed
whitespace removal in both redirection and piping.
BUG: need to fix readline prompt after piping.
* lafe.c: new tele messages supported with rl_message()
custom prompts (type 4) implemented as command prompts
command prompt modified to look like emp_client prompt
BUGS: redirection and piping don't work. exec is unimplemented.
* lafe.c:
Fixed the command prompt, the readline prompt is now overwritten
by resetting rl_display_prompt=rl_prompt=prompt.
There may be a memory leak now.. will look for it.
* lafe.c:
Fixed buffering problem that led to lost data and tracking failures
(unimplemented protocol errors).
* Makefile: Fixed dependencies so lafe compiles.
* Makefile: Initial version
* lafe.c: *** empty log message ***
|