         self.view.addSubview(self.recordTableView)
         self.view.addSubview(self.inputField)
         
-        self.recordTableView.mj_header = MJRefreshNormalHeader(refreshingBlock: { [weak self] in
+        self.recordTableView.es_addPullToRefresh { [weak self] in
             guard let sself = self else {
                 return
             }

            if result == true {
                sself.recordTableView.reloadData()
            }
            sself.recordTableView.mj_header.endRefreshing()
        })
        
        NotificationCenter.default.addObserver(self,
                                               selector: #selector(ConsolePrintViewController.keyboardWillShow(noti:)),

//

import Foundation
import ESPullToRefresh
import SwViewCapture

class ConsolePrintViewController: UIViewController {
