-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2002 from agnostic-apollo/termux-various-fixes-an…
…d-improvements
- Loading branch information
Showing
6 changed files
with
113 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hell/TermuxTerminalSessionClientBase.java → ...inal/TermuxTerminalSessionClientBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
termux-shared/src/main/java/com/termux/shared/terminal/TermuxTerminalViewClientBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package com.termux.shared.terminal; | ||
|
||
import android.view.KeyEvent; | ||
import android.view.MotionEvent; | ||
|
||
import com.termux.shared.logger.Logger; | ||
import com.termux.terminal.TerminalSession; | ||
import com.termux.view.TerminalViewClient; | ||
|
||
public class TermuxTerminalViewClientBase implements TerminalViewClient { | ||
|
||
public TermuxTerminalViewClientBase() { | ||
} | ||
|
||
@Override | ||
public float onScale(float scale) { | ||
return 1.0f; | ||
} | ||
|
||
@Override | ||
public void onSingleTapUp(MotionEvent e) { | ||
} | ||
|
||
public boolean shouldBackButtonBeMappedToEscape() { | ||
return false; | ||
} | ||
|
||
public boolean shouldEnforceCharBasedInput() { | ||
return false; | ||
} | ||
|
||
public boolean shouldUseCtrlSpaceWorkaround() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void copyModeChanged(boolean copyMode) { | ||
} | ||
|
||
@Override | ||
public boolean onKeyDown(int keyCode, KeyEvent e, TerminalSession session) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean onKeyUp(int keyCode, KeyEvent e) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean onLongPress(MotionEvent event) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean readControlKey() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean readAltKey() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean onCodePoint(int codePoint, boolean ctrlDown, TerminalSession session) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void logError(String tag, String message) { | ||
Logger.logError(tag, message); | ||
} | ||
|
||
@Override | ||
public void logWarn(String tag, String message) { | ||
Logger.logWarn(tag, message); | ||
} | ||
|
||
@Override | ||
public void logInfo(String tag, String message) { | ||
Logger.logInfo(tag, message); | ||
} | ||
|
||
@Override | ||
public void logDebug(String tag, String message) { | ||
Logger.logDebug(tag, message); | ||
} | ||
|
||
@Override | ||
public void logVerbose(String tag, String message) { | ||
Logger.logVerbose(tag, message); | ||
} | ||
|
||
@Override | ||
public void logStackTraceWithMessage(String tag, String message, Exception e) { | ||
Logger.logStackTraceWithMessage(tag, message, e); | ||
} | ||
|
||
@Override | ||
public void logStackTrace(String tag, Exception e) { | ||
Logger.logStackTrace(tag, e); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters