Changeset 8a2815b


Ignore:
Timestamp:
Jan 7, 2010, 6:54:14 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
a999d9e
Parents:
365950b
git-author:
Nelson Elhage <nelhage@mit.edu> (12/30/09 17:35:49)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/07/10 18:54:14)
Message:
loopwrite_setup: Delegate to owl_function_write_setup()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rcce5dbd r8a2815b  
    348348void owl_function_loopwrite_setup(void)
    349349{
    350   owl_editwin *e;
    351 
    352   /* create and setup the editwin */
    353   e=owl_global_get_typwin(&g);
    354   owl_editwin_new_style(e, OWL_EDITWIN_STYLE_MULTILINE, owl_global_get_msg_history(&g));
    355 
    356   if (!owl_global_get_lockout_ctrld(&g)) {
    357     owl_function_makemsg("Type your message below.  End with ^D or a dot on a line by itself.  ^C will quit.");
    358   } else {
    359     owl_function_makemsg("Type your message below.  End with a dot on a line by itself.  ^C will quit.");
    360   }
    361 
    362   owl_editwin_clear(e);
    363   owl_editwin_set_dotsend(e);
    364   owl_editwin_set_locktext(e, "----> loopwrite\n");
    365 
    366   /* make it active */
    367   owl_global_set_typwin_active(&g);
    368 
    369   owl_global_set_buffercommand(&g, "loopwrite");
    370   owl_global_set_buffercallback(&g, &owl_callback_loopwrite);
     350  owl_function_write_setup("loopwrite", "message", owl_callback_loopwrite);
    371351}
    372352
Note: See TracChangeset for help on using the changeset viewer.