Changeset e1c4636 for variable.c


Ignore:
Timestamp:
Jul 9, 2002, 12:04:35 AM (22 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2c8a07c
Parents:
10b866d
Message:
* Added owl::send_zwrite(command, message) to the perl glue
         to allow for the direct sending of multi-line messages.
         For example:  owl::send_zwrite("-c foo -i bar", "hello");
* Reverted attempted fix for the pagedown problem
         which just made things worse.
* Changed owl_fmtext_print_plain to return an alloc'd string to
         avoid buffer overrun risks.
* Added owl::ztext_stylestrip("...") function to perlglue
          which returns the ztext with formatting stripped out.
* Added colorztext variable which can be used to disable @color()
          strings arriving in messages after it is set.
          (Currently, changing its value won't reformat messages).
* Outgoing zephyr logging now obeys the logpath variable.
* The '~' character in logpath and classlogpath now gets
          replaced with the user's home directory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r217a43e re1c4636  
    77
    88static const char fileIdent[] = "$Id$";
     9
     10static int in_regtest = 0;
    911
    1012#define OWLVAR_BOOL(name,default,docstring) \
     
    8587               "turn class logging on or off" ),
    8688
     89  OWLVAR_BOOL( "colorztext" /* %OwlVarStub */, 1,
     90               "allow @color() in zephyrs to change color" ),
     91
    8792  OWLVAR_ENUM_FULL( "disable-ctrl-d" /* %OwlVarStub:lockout_ctrld */, 1,
    8893                    "don't send zephyrs on C-d (or disable if in the middle of the message if set to 'middle')", "off,middle,on",
     
    193198 * any user setting of this */
    194199int owl_variable_disable_ctrl_d_set(owl_variable *v, void *newval) {
     200
     201  if (in_regtest) return owl_variable_int_set_default(v, newval);
     202
    195203  if (newval && !owl_context_is_startup(owl_global_get_context(&g))) {
    196204    if (*(int*)newval == 2) {
     
    675683  char buf[1024];
    676684
     685  in_regtest = 1;
     686
    677687  printf("BEGIN testing owl_variable\n");
    678688  FAIL_UNLESS("setup", 0==owl_variable_dict_setup(&vd));
Note: See TracChangeset for help on using the changeset viewer.