Main Page   Compound List   File List   Compound Members   File Members  

zreplay.vtc

Go to the documentation of this file.
00001 /* -*- C -*- */
00014 Load("zsend");
00015 Load("zsend-zwrite");
00016 
00017 user ?:= getenv("USER");
00018 
00025 func zreplay(lineno) [line, pipe] {
00026     line = get_histline(lineno);
00027     if (!line)
00028         return printf("Invalid line.\n");
00029 
00030     zout = new_zoutgoing();
00031     zout->class = "wg";
00032     zout->instance = "wg";
00033     zout->recipient = user;
00034     zout->body = line;
00035     zout->sender = .zsend_zwrite;
00036     zout_send(zout);
00037 }
00038 
00044 func Zreplay(s) { zreplay(atoi(s)); }
00045 add_cmd("zreplay", 1, .Zreplay, "/zreplay <line number>");

Generated at Mon Aug 13 16:45:52 2001 for dzm-vtc by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001