Changeset 11
- Timestamp:
- 10/01/02 17:31:52 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/ManMode.java
r2 r11 3 3 * 4 4 * Copyright (C) 2000-2002 Peter Graves 5 * $Id: ManMode.java,v 1. 1.1.1 2002-09-24 16:07:44piso Exp $5 * $Id: ManMode.java,v 1.2 2002-10-01 17:31:52 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 169 169 return; 170 170 File tempFile = Utilities.getTempFile(); 171 Process process = null;172 171 String cmd = "man " + topic + " > " + tempFile.canonicalPath(); 173 172 String[] cmdarray = {"/bin/sh", "-c", cmd}; 174 173 try { 175 process = Runtime.getRuntime().exec(cmdarray);174 Process process = Runtime.getRuntime().exec(cmdarray); 176 175 process.waitFor(); 177 176 } … … 185 184 editor.makeNext(man); 186 185 editor.switchToBuffer(man); 187 man.repaint();188 186 } else 189 187 editor.status("No entry");
Note: See TracChangeset
for help on using the changeset viewer.