Changeset 194
- Timestamp:
- 02/18/2010 02:55:26 PM (13 years ago)
- Location:
- SHX/trunk/src/SeismicHandler
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
SHX/trunk/src/SeismicHandler/commands/echo.py
r175 r194 17 17 18 18 from SeismicHandler.core.base.command import BaseCommand 19 from SeismicHandler.core .settingimport Settings19 from SeismicHandler.core import Settings 20 20 21 21 class echo(BaseCommand): 22 22 """ 23 23 command ECHO <text1>[;<text2>[;...;<textN>]] 24 24 25 25 Writes text to echo channel (set by ECHO_CH command). Default output 26 26 channel is the seismhandler text window. All parameters entered are 27 27 displayed, separated by blanks. 28 28 29 29 parameters: 30 30 31 31 <text1>, <text2>, ..., <textN> --- parameter type: string 32 32 Text to be written to echo channel, parameters are separated by 33 33 blanks. 34 34 35 35 qualifiers: 36 36 37 37 /NO_LF 38 38 Writes no line feed at the of the line. Next ECHO command 39 39 overwrites this one. 40 40 41 41 /NO_CRLF 42 42 Writes no line feed and no carriage return at the end of the 43 43 line. Next ECHO text is appended to this one. 44 44 45 45 Examples: 46 46 47 47 ECHO THIS IS A TEST ! writes string "THIS IS A TEST" to 48 48 ! the currently selected ECHO-file 49 49 50 50 ECHO DISTANCE ^DISTANCE(2) ! writes string "DISTANCE " and value 51 51 ! of distance information of second trace … … 59 59 ] 60 60 expectFilename = False 61 61 62 62 def __init__(self, *args, **kwargs): 63 63 # unroll args & kwargs 64 64 BaseCommand.__init__(self, *args, **kwargs) 65 65 66 66 def run(self): 67 67 if self.qualifiers["NO_LF"] or self.qualifiers["NO_CRLF"]: -
SHX/trunk/src/SeismicHandler/commands/echo_ch.py
r175 r194 17 17 18 18 from SeismicHandler.core.base.command import BaseCommand 19 from SeismicHandler.core .settingimport Settings19 from SeismicHandler.core import Settings 20 20 21 21 class echo_ch(BaseCommand): -
SHX/trunk/src/SeismicHandler/core/__init__.py
r127 r194 5 5 # This file is part of Seismic Handler eXtended (SHX) 6 6 # Full details can be found at project website http://www.seismic-handler.org/ 7 # 7 # 8 8 # SHX is free software; you can redistribute it and/or modify 9 9 # it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by … … 22 22 from SeismicHandler.core.history import History as history 23 23 from SeismicHandler.core import codes 24 25 from SeismicHandler.core.runtime import Settings, Globals
Note: See TracChangeset
for help on using the changeset viewer.