90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
[of_stdout eraseLine];
[of_stdout writeString: @"World!"];
[OFThread sleepForTimeInterval: 2];
[of_stdout clear];
[OFThread sleepForTimeInterval: 2];
of_stdout.cursorPosition = of_point(5, 3);
[of_stdout writeString: @"Text at (5, 3)"];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(-2, 0)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(2, 0)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(0, -2)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(0, 2)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(1, 1)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(-1, -1)];
[OFThread sleepForTimeInterval: 2];
of_stdout.cursorColumn = 2;
[OFThread sleepForTimeInterval: 2];
[of_stdout reset];
[OFApplication terminate];
}
@end
|
|
|
|
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
[of_stdout eraseLine];
[of_stdout writeString: @"World!"];
[OFThread sleepForTimeInterval: 2];
[of_stdout clear];
[OFThread sleepForTimeInterval: 2];
[of_stdout setCursorPosition: of_point(5, 3)];
[of_stdout writeString: @"Text at (5, 3)"];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(-2, 0)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(2, 0)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(0, -2)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(0, 2)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(1, 1)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setRelativeCursorPosition: of_point(-1, -1)];
[OFThread sleepForTimeInterval: 2];
[of_stdout setCursorColumn: 2];
[OFThread sleepForTimeInterval: 2];
[of_stdout reset];
[OFApplication terminate];
}
@end
|