Changeset 2824f79


Ignore:
Timestamp:
Jun 4, 2003, 10:03:07 AM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6a415e9
Parents:
96f8e5b
Message:
The 'startup' command will now remove duplicate lines from earlier in the
  file before doing an append.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r38cf544c r2824f79  
    28862886}
    28872887
     2888/* print the xterm escape sequence to raise the window */
    28882889void owl_function_xterm_raise(void)
    28892890{
     
    28912892}
    28922893
     2894/* print the xterm escape sequence to deiconify the window */
    28932895void owl_function_xterm_deiconify(void)
    28942896{
     
    28992901 * should be clever, and rewriting settings that will obviosly
    29002902 * override earlier settings with 'set' 'bindkey' and 'alias'
    2901  * commands.  For now though we just append to the startupfile.
     2903 * commands.  For now though we just remove any line that would
     2904 * duplicate this one and then append this line to the end of
     2905 * startupfile.
    29022906 */
    29032907void owl_function_addstartup(char *buff)
     
    29132917    return;
    29142918  }
     2919
     2920  /* delete earlier copies */
     2921  owl_util_file_deleteline(filename, buff, 1);
     2922
     2923  /* add this line */
    29152924  fprintf(file, "%s\n", buff);
     2925
    29162926  fclose(file);
    29172927}
Note: See TracChangeset for help on using the changeset viewer.