home *** CD-ROM | disk | FTP | other *** search
-
- export int WordWrap_hook(string String)
- {
- if(ReadInfo("wall_right") >= ReadInfo("column"))
- return;
- {
- int line=ReadInfo("line");
- int steps=CursorLeftWord();
- if (line==ReadInfo("line") && ReadInfo("column")>1)
- Output("\n");
- CursorRight(steps);
- }
- if(ReadInfo("wall_right") <= ReadInfo("column"))
- Output("\n");
- }
-
- ConstructInfo("wordwrap", "", "", "WBL", "", 0, 0);
- ConstructInfo("wall_right", "", "", "WIL", "", 0, 999, 79);
-
- HookPast("Output", "WordWrap_hook", "wordwrap");
-
-